Merge branch 'master' of ssh://184.154.0.242:7999/min/mineplex

This commit is contained in:
Mini-Chiss 2015-08-29 00:14:26 -07:00
commit 9ebabed1a8

View File

@ -62,6 +62,7 @@ public class GadgetManager extends MiniPlugin
private boolean _hideParticles = false;
private int _activeItemSlot = 3;
private int _meows = 0;
public GadgetManager(JavaPlugin plugin, CoreClientManager clientManager, DonationManager donationManager, InventoryManager inventoryManager,
MountManager mountManager, PetManager petManager, PreferencesManager preferencesManager,
@ -459,7 +460,14 @@ public class GadgetManager extends MiniPlugin
{
if (!event.getPlayer().isSneaking())
{
if (_meows > 3)
{
event.getPlayer().kickPlayer("You meow too much!");
return;
}
event.getPlayer().getWorld().playSound(event.getPlayer().getLocation(), Sound.CAT_MEOW, 1f, 1f);
_meows++;
}
}
}