From 25c8dad1ea2b3b473f441e653f83775e27b043df Mon Sep 17 00:00:00 2001 From: nossr50 Date: Tue, 22 Jan 2019 20:25:55 -0800 Subject: [PATCH] fixing XP gains LOL --- src/main/java/com/gmail/nossr50/listeners/SelfListener.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); + } } }