diff --git a/src/main/java/com/gmail/nossr50/listeners/SelfListener.java b/src/main/java/com/gmail/nossr50/listeners/SelfListener.java index 37a6bf369..d0a655713 100644 --- a/src/main/java/com/gmail/nossr50/listeners/SelfListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/SelfListener.java @@ -79,9 +79,10 @@ public class SelfListener implements Listener { if(WorldGuardUtils.isWorldGuardLoaded()) { if(!WorldGuardManager.getInstance().hasXPFlag(player)) + { event.setRawXpGained(0); - - event.setCancelled(true); + event.setCancelled(true); + } } }