Amblydia / Pocketmine-School-Old

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

Change if($cmd->getName() == "test") to switch($cmd->getName()) #5

Closed KygekDev closed 4 years ago

KygekDev commented 4 years ago

Using switch is easier and better than using if, because I was using if and my plugin didn't worked. But when I used switch the plugin worked.