mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 20:00:46 +00:00
Enu-moo-til
This commit is contained in:
parent
35a2a4d803
commit
6ecdc8d7fc
1 changed files with 3 additions and 10 deletions
|
@ -5,10 +5,7 @@ import com.earth2me.essentials.EssentialsUpgrade;
|
||||||
import com.earth2me.essentials.User;
|
import com.earth2me.essentials.User;
|
||||||
import com.earth2me.essentials.UserMap;
|
import com.earth2me.essentials.UserMap;
|
||||||
import com.earth2me.essentials.metrics.Metrics;
|
import com.earth2me.essentials.metrics.Metrics;
|
||||||
import com.earth2me.essentials.utils.DateUtil;
|
import com.earth2me.essentials.utils.*;
|
||||||
import com.earth2me.essentials.utils.FloatUtil;
|
|
||||||
import com.earth2me.essentials.utils.NumberUtil;
|
|
||||||
import com.earth2me.essentials.utils.VersionUtil;
|
|
||||||
import com.google.common.base.Charsets;
|
import com.google.common.base.Charsets;
|
||||||
import com.google.common.collect.Lists;
|
import com.google.common.collect.Lists;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
|
@ -187,12 +184,8 @@ public class Commandessentials extends EssentialsCommand {
|
||||||
private final String[] playerMoo = 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 CommandSource sender, final String command, final String args[]) {
|
private void run_moo(final Server server, final CommandSource sender, final String command, final String args[]) {
|
||||||
Sound moo;
|
Sound moo = EnumUtil.valueOf(Sound.class, "COW_IDLE", "ENTITY_COW_MILK");
|
||||||
try {
|
|
||||||
moo = Sound.valueOf("COW_IDLE"); // pre-1.9
|
|
||||||
} catch (IllegalArgumentException e) {
|
|
||||||
moo = Sound.valueOf("ENTITY_COW_MILK"); // 1.9
|
|
||||||
}
|
|
||||||
if (args.length == 2 && args[1].equals("moo")) {
|
if (args.length == 2 && args[1].equals("moo")) {
|
||||||
for (String s : consoleMoo) {
|
for (String s : consoleMoo) {
|
||||||
logger.info(s);
|
logger.info(s);
|
||||||
|
|
Loading…
Reference in a new issue