mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-12 01:25:26 +02:00
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.
This commit is contained in:
23
Essentials/src/net/ess3/commands/Commandantioch.java
Normal file
23
Essentials/src/net/ess3/commands/Commandantioch.java
Normal file
@@ -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);
|
||||||
|
}
|
||||||
|
}
|
@@ -12,7 +12,7 @@ commands:
|
|||||||
usage: /<command>
|
usage: /<command>
|
||||||
aliases: [eafk]
|
aliases: [eafk]
|
||||||
antioch:
|
antioch:
|
||||||
description: 'A little surprise for operators.'
|
description: A little surprise for operators.
|
||||||
usage: /<command> [message]
|
usage: /<command> [message]
|
||||||
aliases: [eantioch,grenade,tnt,egrenade,etnt]
|
aliases: [eantioch,grenade,tnt,egrenade,etnt]
|
||||||
back:
|
back:
|
||||||
|
Reference in New Issue
Block a user