From fcfb2559b8a467b04caf205c1be76957292d73fd Mon Sep 17 00:00:00 2001 From: Mini-Chiss Date: Wed, 12 Aug 2015 14:41:33 +0200 Subject: [PATCH] players cannot grab slime :O --- .../Mineplex.Hub/src/mineplex/hub/modules/SoccerManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Plugins/Mineplex.Hub/src/mineplex/hub/modules/SoccerManager.java b/Plugins/Mineplex.Hub/src/mineplex/hub/modules/SoccerManager.java index 2b2c32564..6383be7a3 100644 --- a/Plugins/Mineplex.Hub/src/mineplex/hub/modules/SoccerManager.java +++ b/Plugins/Mineplex.Hub/src/mineplex/hub/modules/SoccerManager.java @@ -493,6 +493,9 @@ public class SoccerManager extends MiniPlugin { if (_active.contains(event.getPlayer())) event.setCancelled(true); + + if (_ball != null && event.getRightClicked().equals(_ball)) + event.setCancelled(true); } @EventHandler