diff --git a/plugin.yml b/plugin.yml index 3112f0d..1fdb43c 100644 --- a/plugin.yml +++ b/plugin.yml @@ -20,5 +20,10 @@ commands: hideandseek: description: Main HideAndSeek management command usage: /hideandseek [parameters] -permissions: [] + permission: hideandseek.cmd + aliases: [hide&seek, h&s] +permissions: + hideandseek.cmd: + default: op + description: /hideandseek permission ... \ No newline at end of file diff --git a/src/Ad5001/HideAndSeek/Main.php b/src/Ad5001/HideAndSeek/Main.php index a976336..9c6d3a5 100644 --- a/src/Ad5001/HideAndSeek/Main.php +++ b/src/Ad5001/HideAndSeek/Main.php @@ -187,6 +187,8 @@ A $p->sendPopup("§lHider: You have 1 minute to hide yourself so seekers won't find you ! Don't get caught for " . $this->getSeekTime() . " minutes to win !"); } } + } else { + $sender->sendMessage(self::PREFIX . "§cThere must be atleast 2 players in your game to force start it."); } return true; } else {