4. ### Saxavlax001Silverfish

Messages:
21
GitHub:
Saxavlax001
I didnt send all the files because I think that's useless,and the files are many.Also I tried many things to fix it,but I had errors again.

Last edited: Jun 10, 2019
5. ### KielKingZombie

Messages:
241
GitHub:
kielking
you are calling a property, I think you meant to call the function. Put parenthesis in the end like this, ()

6. ### Saxavlax001Silverfish

Messages:
21
GitHub:
Saxavlax001
PHP:
          //size small             if($hand->getCustomName() == "§eSmall"){$player = $ev->getPlayer(); Server::getInstance()->dispatchCommand(new$player->getName(), "size 0.6");     }         //size normal             if($hand->getCustomName() == "§eNormal"){$player = $ev->getPlayer(); Server::getInstance()->dispatchCommand(new$player->getName(), "size 1");     }         //size medium             if($hand->getCustomName() == "§eMedium"){$player = $ev->getPlayer(); Server::getInstance()->dispatchCommand(new$player->getName(), "size 2.5");     }         //size big             if($hand->getCustomName() == "§eBig"){$player = $ev->getPlayer(); Server::getInstance()->dispatchCommand(new$player->getName(), "size 4");     } 

7. ### Saxavlax001Silverfish

Messages:
21
GitHub:
Saxavlax001
I had tried that,but again I got the same error.

Messages:
654

Messages:
241
GitHub:
kielking
don't put ()

13. ### MalakasPlayzMCPEZombie Pigman

Messages:
654
remove new and ()

14. ### Saxavlax001Silverfish

Messages:
21
GitHub:
Saxavlax001
Ok,it finally worked.Thanks!

KielKing likes this.