summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-03-02 17:03:34 +0000
committerKHobbits <rob@khobbits.co.uk>2012-03-02 17:03:34 +0000
commit1bbbfe1c96cf62fad3fe9f9eab5b56d28935e4e4 (patch)
treebc487cc6a94a9aa43210e6d60b7554a16abbdf5d
parent25ebe68389a74ae5b5faa9780e76afff75a5a963 (diff)
downloadEssentials-1bbbfe1c96cf62fad3fe9f9eab5b56d28935e4e4.tar
Essentials-1bbbfe1c96cf62fad3fe9f9eab5b56d28935e4e4.tar.gz
Essentials-1bbbfe1c96cf62fad3fe9f9eab5b56d28935e4e4.tar.lz
Essentials-1bbbfe1c96cf62fad3fe9f9eab5b56d28935e4e4.tar.xz
Essentials-1bbbfe1c96cf62fad3fe9f9eab5b56d28935e4e4.zip
Make the antioch message optional.
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandantioch.java7
-rw-r--r--Essentials/src/plugin.yml2
2 files changed, 6 insertions, 3 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandantioch.java b/Essentials/src/com/earth2me/essentials/commands/Commandantioch.java
index 54277d466..968d0012c 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandantioch.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandantioch.java
@@ -17,8 +17,11 @@ public class Commandantioch extends EssentialsCommand
@Override
public void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception
{
- ess.broadcastMessage(user, "...lobbest thou thy Holy Hand Grenade of Antioch towards thy foe,");
- ess.broadcastMessage(user, "who being naughty in My sight, shall snuff it.");
+ if (args.length > 0)
+ {
+ ess.broadcastMessage(user, "...lobbest thou thy Holy Hand Grenade of Antioch towards thy foe,");
+ ess.broadcastMessage(user, "who being naughty in My sight, shall snuff it.");
+ }
final Location loc = Util.getTarget(user);
loc.getWorld().spawn(loc, TNTPrimed.class);
diff --git a/Essentials/src/plugin.yml b/Essentials/src/plugin.yml
index e63f8b758..b6d90ae20 100644
--- a/Essentials/src/plugin.yml
+++ b/Essentials/src/plugin.yml
@@ -13,7 +13,7 @@ commands:
aliases: [eafk]
antioch:
description: 'A little surprise for operators.'
- usage: /<command>
+ usage: /<command> [message]
aliases: [eantioch]
back:
description: Teleports you to your location prior to tp/spawn/warp.