summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRiaku <riaku56@gmail.com>2013-04-19 14:48:46 -0500
committerRiaku <riaku56@gmail.com>2013-04-19 14:48:46 -0500
commitf89306c42c85ca0025517adf4b9754c214814115 (patch)
tree7010e71aed697ee993204f1a53f4f9e5e60a65f6
parent4cf0843dd60d5c3d192efa35d6639b20a0fe39b8 (diff)
downloadEssentials-f89306c42c85ca0025517adf4b9754c214814115.tar
Essentials-f89306c42c85ca0025517adf4b9754c214814115.tar.gz
Essentials-f89306c42c85ca0025517adf4b9754c214814115.tar.lz
Essentials-f89306c42c85ca0025517adf4b9754c214814115.tar.xz
Essentials-f89306c42c85ca0025517adf4b9754c214814115.zip
adding /antioch command to stop error
http://pastebin.com/gJBJTVPd no new permission nodes. no new locales. this is an easter egg for OPs so the messages probably shouldn't be in locale.
-rw-r--r--Essentials/src/net/ess3/commands/Commandantioch.java23
-rw-r--r--Essentials/src/plugin.yml2
2 files changed, 24 insertions, 1 deletions
diff --git a/Essentials/src/net/ess3/commands/Commandantioch.java b/Essentials/src/net/ess3/commands/Commandantioch.java
new file mode 100644
index 000000000..e9447e0c6
--- /dev/null
+++ b/Essentials/src/net/ess3/commands/Commandantioch.java
@@ -0,0 +1,23 @@
+package net.ess3.commands;
+
+import net.ess3.api.IUser;
+import net.ess3.utils.LocationUtil;
+import org.bukkit.Location;
+import org.bukkit.Server;
+import org.bukkit.entity.TNTPrimed;
+
+// This command has a theme message that only shows if you supply a parameter #EasterEgg
+public class Commandantioch extends EssentialsCommand
+{
+ public void run(final Server server, final IUser user, final String commandLabel, final String[] args) throws Exception
+ {
+ 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 = LocationUtil.getTarget(user.getPlayer());
+ loc.getWorld().spawn(loc, TNTPrimed.class);
+ }
+} \ No newline at end of file
diff --git a/Essentials/src/plugin.yml b/Essentials/src/plugin.yml
index 3dfe5bd22..779ed52ad 100644
--- a/Essentials/src/plugin.yml
+++ b/Essentials/src/plugin.yml
@@ -12,7 +12,7 @@ commands:
usage: /<command>
aliases: [eafk]
antioch:
- description: 'A little surprise for operators.'
+ description: A little surprise for operators.
usage: /<command> [message]
aliases: [eantioch,grenade,tnt,egrenade,etnt]
back: