mirror of
https://github.com/garbagemule/MobArena.git
synced 2025-02-02 21:51:21 +01:00
Changed the default usage message to reflect people fucking up
This commit is contained in:
parent
6d53b7c193
commit
ad4d502618
BIN
MobArena.jar
BIN
MobArena.jar
Binary file not shown.
@ -1,22 +1,22 @@
|
|||||||
name: MobArena
|
name: MobArena
|
||||||
main: com.garbagemule.MobArena.MobArena
|
main: com.garbagemule.MobArena.MobArena
|
||||||
version: 0.94.3.20
|
version: 0.94.3.21
|
||||||
softdepend: [Spout,Permissions,MultiVerse,XcraftGate,Towny,Heroes,MagicSpells]
|
softdepend: [Spout,Permissions,MultiVerse,XcraftGate,Towny,Heroes,MagicSpells]
|
||||||
commands:
|
commands:
|
||||||
ma:
|
ma:
|
||||||
description: Base command for MobArena
|
description: Base command for MobArena
|
||||||
usage: |
|
usage: |
|
||||||
/ma join - Join the arena.
|
YOU HAVE AN ERROR!
|
||||||
/ma leave - Leave the arena.
|
Find the error in your server log, copy it into
|
||||||
/ma notready - List of players who aren't ready.
|
http://pastebin.com, and then paste the link
|
||||||
/ma spectate - Warp to the spectator area.
|
in the IRC or on the forums.
|
||||||
mobarena:
|
mobarena:
|
||||||
description: Base command for MobArena
|
description: Base command for MobArena
|
||||||
usage: |
|
usage: |
|
||||||
/mobarena join - Join the arena.
|
YOU HAVE AN ERROR!
|
||||||
/mobarena leave - Leave the arena.
|
Find the error in your server log, copy it into
|
||||||
/mobarena notready - List of players who aren't ready.
|
http://pastebin.com, and then paste the link
|
||||||
/mobarena spectate - Warp to the spectator area.
|
in the IRC or on the forums.
|
||||||
permissions:
|
permissions:
|
||||||
mobarena.use:
|
mobarena.use:
|
||||||
description: Gives access to usage commands
|
description: Gives access to usage commands
|
||||||
|
@ -102,10 +102,17 @@ public class MACommands implements CommandExecutor
|
|||||||
boolean console = (sender instanceof ConsoleCommandSender);
|
boolean console = (sender instanceof ConsoleCommandSender);
|
||||||
|
|
||||||
// Cast the sender to Player if possible.
|
// Cast the sender to Player if possible.
|
||||||
Player p = (player) ? (Player)sender : null;
|
Player p = (player) ? (Player) sender : null;
|
||||||
|
|
||||||
if (args.length == 0)
|
if (args.length == 0)
|
||||||
return false;
|
{
|
||||||
|
List<Arena> arenas = am.getEnabledArenas();
|
||||||
|
if (arenas == null || arenas.isEmpty())
|
||||||
|
MAUtils.tellPlayer(p, "There are no enabled arenas to join!");
|
||||||
|
else
|
||||||
|
MAUtils.tellPlayer(p, "Use /ma join to join an arena.");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
// Grab the command base and any arguments.
|
// Grab the command base and any arguments.
|
||||||
String base = args[0].toLowerCase();
|
String base = args[0].toLowerCase();
|
||||||
|
Loading…
Reference in New Issue
Block a user