Amblydia / Pocketmine-School-Old

A Website To Teach Everything About PocketMine-MP
https://pocketmineschool.ml
MIT License
21 stars 23 forks source link

Changed if to switch and permission check location #7

Closed KygekDev closed 4 years ago

KygekDev commented 4 years ago

Changed if($cmd->getName() == "test") to switch($cmd->getName()) to synchronize with the "Commands" tutorial and changed the if($sender->hasPermission("test.cmd")) location to inside case "test": so the code will work properly.