Closed KygekDev closed 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.
if($cmd->getName() == "test")
switch($cmd->getName())
if($sender->hasPermission("test.cmd"))
case "test":
Changed
if($cmd->getName() == "test")
toswitch($cmd->getName())
to synchronize with the "Commands" tutorial and changed theif($sender->hasPermission("test.cmd"))
location to insidecase "test":
so the code will work properly.