diff --git a/Plugins/Mineplex.Core/src/mineplex/core/gadget/GadgetManager.java b/Plugins/Mineplex.Core/src/mineplex/core/gadget/GadgetManager.java index 775206ffd..bc7f2ac7d 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/gadget/GadgetManager.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/gadget/GadgetManager.java @@ -6,12 +6,14 @@ import java.util.List; import org.bukkit.Bukkit; import org.bukkit.Location; import org.bukkit.Material; +import org.bukkit.Sound; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.entity.PlayerDeathEvent; import org.bukkit.event.player.PlayerJoinEvent; import org.bukkit.event.player.PlayerMoveEvent; import org.bukkit.event.player.PlayerQuitEvent; +import org.bukkit.event.player.PlayerToggleSneakEvent; import org.bukkit.plugin.java.JavaPlugin; import mineplex.core.MiniPlugin; @@ -430,4 +432,16 @@ public class GadgetManager extends MiniPlugin return true; } + + @EventHandler + public void chissMeow(PlayerToggleSneakEvent event) + { + if (event.getPlayer().getName().equals("Chiss")) + { + if (!event.getPlayer().isSneaking()) + { + event.getPlayer().getWorld().playSound(event.getPlayer().getLocation(), Sound.CAT_MEOW, 1f, 1f); + } + } + } } diff --git a/Plugins/Mineplex.Core/src/mineplex/core/mount/types/MountSheep.java b/Plugins/Mineplex.Core/src/mineplex/core/mount/types/MountSheep.java index bcee6ee2a..e2982d6ab 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/mount/types/MountSheep.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/mount/types/MountSheep.java @@ -52,7 +52,6 @@ public class MountSheep extends HorseMount DisguiseSheep disguise = new DisguiseSheep(horse); disguise.setName(player.getName(), Manager.getClientManager().Get(player).GetRank()); - disguise.setCustomNameVisible(true); //disguise.setColor(DyeColor.getByColor(org.bukkit.Color.fromRGB(100, 0, 200))); Manager.getDisguiseManager().disguise(disguise); diff --git a/Plugins/Mineplex.Core/src/mineplex/core/mount/types/MountSlime.java b/Plugins/Mineplex.Core/src/mineplex/core/mount/types/MountSlime.java index 5bf9b6da2..1dccbdad5 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/mount/types/MountSlime.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/mount/types/MountSlime.java @@ -48,7 +48,6 @@ public class MountSlime extends Mount mount.setSize(2); mount.setCustomName(player.getName() + "'s " + GetName()); - mount.setCustomNameVisible(true); //Inform UtilPlayer.message(player, F.main("Mount", "You spawned " + F.elem(GetName()) + "."));