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

Submitted by PocketMine-MP 3.22.0

General information

Version: 3.22.0
Git commit: c32c2146
Plugin involvement: Direct
Report date: 2021-07-22 00:41:01 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 0 seconds

System Information

PHP version: 7.4.21
Operating system: linux
System banner: Linux xxorierxx.msk.network 4.15.0-140-generic #144-Ubuntu SMP Fri Mar 19 14:12:35 UTC 2021 x86_64

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/HubAPI_1/src/HubAPI/Main
Line: #201
Error level: E_COMPILE_ERROR
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
        $p = $event->getPlayer();
$p->setGamemode(2);

$color = mt_rand(0xFF, 0xFFFFFF);
$k = mt_rand(0xFFFF, 0xFFFFFF);
for($i = 0; $i <= $colors; ++$i){
$k = $k + $i;
$this->generatedColors[] = $k;
}
break;
$armor = Item::get(Item::LEATHER_CAP, 0, 1);
if($armor instanceof LeatherCap){
$armor->setCustomColor($color);
$p->getInventory()->setArmorItem(0, $armor);
}
$armor = Item::get(Item::LEATHER_TUNIC, 0, 1);
if($armor instanceof LeatherTunic){
$armor->setCustomColor($color);
$p->getInventory()->setArmorItem(1, $armor);
}

Loaded Plugins

  • Show

Server Settings

  • Show