fixing XP gains LOL

This commit is contained in:
nossr50 2019-01-22 20:25:55 -08:00
parent ad86db241c
commit 25c8dad1ea

View File

@ -79,11 +79,12 @@ public class SelfListener implements Listener {
if(WorldGuardUtils.isWorldGuardLoaded())
{
if(!WorldGuardManager.getInstance().hasXPFlag(player))
{
event.setRawXpGained(0);
event.setCancelled(true);
}
}
}
if (event.getXpGainReason() == XPGainReason.COMMAND)
{