From eb74a1de9c1edfca947614759dff6d0e9889c945 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Fri, 2 Mar 2012 17:03:34 +0000 Subject: [PATCH] Make the antioch message optional. --- .../com/earth2me/essentials/commands/Commandantioch.java | 7 +++++-- Essentials/src/plugin.yml | 2 +- 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: / + usage: / [message] aliases: [eantioch] back: description: Teleports you to your location prior to tp/spawn/warp.