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-05 08:35:47 +0000
commiteb74a1de9c1edfca947614759dff6d0e9889c945 (patch)
tree4386149f7efb9b3532a9a2486b4bebc75a3f2fb4
parent8450734cf115aa8ee11910705118799424791e40 (diff)
downloadEssentials-eb74a1de9c1edfca947614759dff6d0e9889c945.tar
Essentials-eb74a1de9c1edfca947614759dff6d0e9889c945.tar.gz
Essentials-eb74a1de9c1edfca947614759dff6d0e9889c945.tar.lz
Essentials-eb74a1de9c1edfca947614759dff6d0e9889c945.tar.xz
Essentials-eb74a1de9c1edfca947614759dff6d0e9889c945.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 9165febb2..4931191d1 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.