menu
#4583437 'break' not in the 'loop' or 'switch' context

Submitted by PocketMine-MP 3.15.1

General information

Version: 3.15.1
Git commit: 9f604842
Plugin involvement: Direct
Report date: 2020-10-18 01:56:57 +0000 UTC

System Information

PHP version: 7.3.14
Operating system: win
System banner: Windows NT WIN-HGF742E4NAN 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: 'break' not in the 'loop' or 'switch' context
File: plugins/291-Bakriallaf2018PetMenu_v1-2ef44/src/Bakriallaf2018/Bakriallaf2018PetMenu
Line: #63
Error level: E_COMPILE_ERROR
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
       
public function onCommand(CommandSender $o, Command $kmt, string $label, array $array) : bool{

if($kmt->getName() == "pet"){
if($sender instanceof Player){
if($sender->hasPermission("use.mypet")){
$this->Menu($o);
}
}
break;
}

return true;
}

public function Menu($sender){
$api = $this->getServer()->getPluginManager()->getPlugin("FormAPI");
$form = $api->createSimpleForm(function (Player $sender, int $data = null) {
$result = $data;
if($result === null){

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies