mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
fixing XP gains LOL
This commit is contained in:
parent
ad86db241c
commit
25c8dad1ea
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user