EPT8TPE / Prisons

A pocketmine plugin implementing the legacy prison rank up system in addition to a form of prestiging.
MIT License
9 stars 3 forks source link

Crashed #23

Open hezuwy opened 2 years ago

hezuwy commented 2 years ago

Code: [41] } [42] } [43] } [44] [45] /* [46] @param BlockPlaceEvent $event [47] @return void [48] / [49] public function onPlace(BlockPlaceEvent $event) : void { [50] if($event->getPlayer()->getWorld()->getFolderName() === Utils::getPlotWorld()->getFolderName() || $event->getPlayer()->hasPermission("prisons.nomine.bypass")) { [51] return; [52] } else { [53] $event->cancel(); [54] if(!is_null(Utils::getMessage("no-placing-here"))) { [55] $event->getPlayer()->sendMessage(Utils::getMessage("no-placing-here")); [56] } else { [57] $event->getPlayer()->sendMessage(TextFormat::RED . "Configuration error detected!"); [58] } [59] } [60] }