mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +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(WorldGuardUtils.isWorldGuardLoaded())
|
||||||
{
|
{
|
||||||
if(!WorldGuardManager.getInstance().hasXPFlag(player))
|
if(!WorldGuardManager.getInstance().hasXPFlag(player))
|
||||||
|
{
|
||||||
event.setRawXpGained(0);
|
event.setRawXpGained(0);
|
||||||
|
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (event.getXpGainReason() == XPGainReason.COMMAND)
|
if (event.getXpGainReason() == XPGainReason.COMMAND)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user