mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-02 17:09:58 +01:00
Cleanup
This commit is contained in:
parent
503d39ee55
commit
6094485992
@ -175,25 +175,54 @@ public class Commandessentials extends EssentialsCommand
|
|||||||
noteBlocks.clear();
|
noteBlocks.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private final String[] consoleMoo = new String[] {
|
||||||
|
" (__)",
|
||||||
|
" (oo)",
|
||||||
|
" /------\\/",
|
||||||
|
" / | ||",
|
||||||
|
" * /\\---/\\",
|
||||||
|
" ~~ ~~",
|
||||||
|
"....\"Have you mooed today?\"..."
|
||||||
|
};
|
||||||
|
|
||||||
|
private final String[] playerMoo = new String[] {
|
||||||
|
" (__)",
|
||||||
|
" (oo)",
|
||||||
|
" /------\\/",
|
||||||
|
" / | | |",
|
||||||
|
" * /\\---/\\",
|
||||||
|
" ~~ ~~",
|
||||||
|
"....\"Have you mooed today?\"..."
|
||||||
|
};
|
||||||
private void run_moo(final Server server, final CommandSender sender, final String command, final String args[])
|
private void run_moo(final Server server, final CommandSender sender, final String command, final String args[])
|
||||||
{
|
{
|
||||||
if (sender instanceof ConsoleCommandSender)
|
if(args.length == 2 && args[1].equals("moo"))
|
||||||
{
|
{
|
||||||
sender.sendMessage(new String[]
|
for(String s : consoleMoo)
|
||||||
{
|
{
|
||||||
" (__)", " (oo)", " /------\\/", " / | ||", " * /\\---/\\", " ~~ ~~", "....\"Have you mooed today?\"..."
|
logger.info(s);
|
||||||
});
|
}
|
||||||
|
for(Player player : ess.getServer().getOnlinePlayers())
|
||||||
|
{
|
||||||
|
player.sendMessage(playerMoo);
|
||||||
|
player.playSound(player.getLocation(), Sound.COW_IDLE, 1, 1.0f);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
sender.sendMessage(new String[]
|
if (sender instanceof ConsoleCommandSender)
|
||||||
{
|
{
|
||||||
" (__)", " (oo)", " /------\\/", " / | | |", " * /\\---/\\", " ~~ ~~", "....\"Have you mooed today?\"..."
|
sender.sendMessage(consoleMoo);
|
||||||
});
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
sender.sendMessage(playerMoo);
|
||||||
final Player player = (Player)sender;
|
final Player player = (Player)sender;
|
||||||
player.playSound(player.getLocation(), Sound.COW_IDLE, 1, 1.0f);
|
player.playSound(player.getLocation(), Sound.COW_IDLE, 1, 1.0f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void run_optout(final Server server, final CommandSender sender, final String command, final String args[])
|
private void run_optout(final Server server, final CommandSender sender, final String command, final String args[])
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user