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
commit6784eae1fd1bfff6835621947f782d968854b139 (patch)
treee27d1a1fe39de84136fbb0c4c5cb813668f4e189
parent6a6e920aa34ecf7294dc2833aebdba987fbf4f33 (diff)
downloadEssentials-6784eae1fd1bfff6835621947f782d968854b139.tar
Essentials-6784eae1fd1bfff6835621947f782d968854b139.tar.gz
Essentials-6784eae1fd1bfff6835621947f782d968854b139.tar.lz
Essentials-6784eae1fd1bfff6835621947f782d968854b139.tar.xz
Essentials-6784eae1fd1bfff6835621947f782d968854b139.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.