mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-11-13 15:10:50 +01:00
fixing XP gains LOL
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user