diff options
author | md-5 <md_5@bigpond.com> | 2012-03-03 00:31:48 -0800 |
---|---|---|
committer | md-5 <md_5@bigpond.com> | 2012-03-03 00:31:48 -0800 |
commit | 504f28df1a7c094d27a0eaed10aa85417e4c4c3c (patch) | |
tree | c7f8f154a7c5662f06963c98b13700808e3405c4 | |
parent | 33605517ffa89bc5f84d841101e6a29f091a72d5 (diff) | |
parent | 74a57553f68114948614eb6e77abe201ee0bcd36 (diff) | |
download | Essentials-504f28df1a7c094d27a0eaed10aa85417e4c4c3c.tar Essentials-504f28df1a7c094d27a0eaed10aa85417e4c4c3c.tar.gz Essentials-504f28df1a7c094d27a0eaed10aa85417e4c4c3c.tar.lz Essentials-504f28df1a7c094d27a0eaed10aa85417e4c4c3c.tar.xz Essentials-504f28df1a7c094d27a0eaed10aa85417e4c4c3c.zip |
Merge pull request #55 from chrisward/master
Just a really small cleanup
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandessentials.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandessentials.java b/Essentials/src/com/earth2me/essentials/commands/Commandessentials.java index 14bbf5e02..56432a91f 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandessentials.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandessentials.java @@ -9,6 +9,7 @@ import org.bukkit.Material; import org.bukkit.Server; import org.bukkit.block.Block; import org.bukkit.command.CommandSender; +import org.bukkit.command.ConsoleCommandSender; import org.bukkit.entity.Player; @@ -35,6 +36,10 @@ public class Commandessentials extends EssentialsCommand { run_nya(server, sender, commandLabel, args); } + else if (args[0].equalsIgnoreCase("moo")) + { + run_moo(server, sender, commandLabel, args); + } else { run_reload(server, sender, commandLabel, args); } @@ -159,4 +164,12 @@ public class Commandessentials extends EssentialsCommand } noteBlocks.clear(); } + + private void run_moo(final Server server, final CommandSender sender, final String command, final String args[]) + { + if(sender instanceof ConsoleCommandSender) + sender.sendMessage(new String[]{" (__)", " (oo)", " /------\\/", " / | ||", " * /\\---/\\", " ~~ ~~", "....\"Have you mooed today?\"..." } ); + else + sender.sendMessage(new String[]{" (__)", " (oo)", " /------\\/", " / | | |", " * /\\---/\\", " ~~ ~~", "....\"Have you mooed today?\"..." } ); + } } |