diff --git a/src/leonchang99/SignPortal/Main.php b/src/leonchang99/SignPortal/Main.php index 2945385..17f9b6f 100644 --- a/src/leonchang99/SignPortal/Main.php +++ b/src/leonchang99/SignPortal/Main.php @@ -63,6 +63,17 @@ public function onCommand(CommandSender $sender, Command $command, $label, array return true; default: return false; + + case "generate1": + if(isset($args[1])){ + Server::getInstance()->generateLevel($args[0]); + $sender->sendMessage("[SignPortal] World ".$args[1]." is being generated"); + }else{ + $sender->sendMessage("Usage /generate1 "); + } + return true; + default: + return false; } }