Browse Source

Adding a message + fixing perm bug

master
Ad5001 2 years ago
parent
commit
d6ed965925
No known key found for this signature in database
2 changed files with 8 additions and 1 deletions
  1. 6
    1
      plugin.yml
  2. 2
    0
      src/Ad5001/HideAndSeek/Main.php

+ 6
- 1
plugin.yml View File

@@ -20,5 +20,10 @@ commands:
hideandseek:
description: Main HideAndSeek management command
usage: /hideandseek <sub command> [parameters]
permissions: []
permission: hideandseek.cmd
aliases: [hide&seek, h&s]
permissions:
hideandseek.cmd:
default: op
description: /hideandseek permission
...

+ 2
- 0
src/Ad5001/HideAndSeek/Main.php View File

@@ -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 {

Loading…
Cancel
Save