Merge branch 'master' of ssh://184.154.0.242:7999/min/mineplex
This commit is contained in:
commit
9ebabed1a8
@ -62,6 +62,7 @@ public class GadgetManager extends MiniPlugin
|
|||||||
|
|
||||||
private boolean _hideParticles = false;
|
private boolean _hideParticles = false;
|
||||||
private int _activeItemSlot = 3;
|
private int _activeItemSlot = 3;
|
||||||
|
private int _meows = 0;
|
||||||
|
|
||||||
public GadgetManager(JavaPlugin plugin, CoreClientManager clientManager, DonationManager donationManager, InventoryManager inventoryManager,
|
public GadgetManager(JavaPlugin plugin, CoreClientManager clientManager, DonationManager donationManager, InventoryManager inventoryManager,
|
||||||
MountManager mountManager, PetManager petManager, PreferencesManager preferencesManager,
|
MountManager mountManager, PetManager petManager, PreferencesManager preferencesManager,
|
||||||
@ -459,7 +460,14 @@ public class GadgetManager extends MiniPlugin
|
|||||||
{
|
{
|
||||||
if (!event.getPlayer().isSneaking())
|
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);
|
event.getPlayer().getWorld().playSound(event.getPlayer().getLocation(), Sound.CAT_MEOW, 1f, 1f);
|
||||||
|
_meows++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user