Command | Permission | Default |
---|---|---|
/workbench |
portablecrafting.command.workbench |
everyone |
/** @var Player $player */
PortableCrafting::WORKBENCH()->send($player);
public functon onOpenWorkbench(OpenWorkbenchPortableCraftingEvent $event) : void{
$event->getPlayer()->sendMessage("You can't launch /workbench in this region.");
$event->cancel();
}