Reset exp on death
This commit is contained in:
parent
b0b437ab4e
commit
105ab35bb6
@ -26,6 +26,7 @@ import mineplex.core.common.util.UtilServer;
|
||||
import mineplex.core.portal.GenericServer;
|
||||
import mineplex.core.portal.Intent;
|
||||
import mineplex.core.portal.Portal;
|
||||
import mineplex.gemhunters.death.event.PlayerCustomRespawnEvent;
|
||||
import mineplex.gemhunters.death.quitnpc.QuitNPC;
|
||||
import mineplex.gemhunters.death.quitnpc.QuitNPCModule;
|
||||
import mineplex.gemhunters.safezone.SafezoneModule;
|
||||
@ -171,6 +172,16 @@ public class SpawnModule extends MiniPlugin
|
||||
new SimpleNPC(_plugin, location, Villager.class, C.cGoldB + "Gem Hunters Tutorial", null);
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void clearExp(PlayerCustomRespawnEvent event)
|
||||
{
|
||||
Player player = event.getPlayer();
|
||||
|
||||
player.setLevel(0);
|
||||
player.setExp(0);
|
||||
}
|
||||
|
||||
|
||||
public void teleportToSpawn(Player player)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user