Reset Exp when switching Class

This commit is contained in:
Sn0wStorm 2013-05-25 16:42:06 +02:00
parent 545688fbd8
commit 021026febd

View File

@ -298,6 +298,10 @@ public class DPlayer {
this.player.removePotionEffect(effect.getType()); this.player.removePotionEffect(effect.getType());
} }
// Reset lvl
this.player.setTotalExperience(0);
this.player.setLevel(0);
/* Set Inventory */ /* Set Inventory */
for (ItemStack istack : dclass.items) { for (ItemStack istack : dclass.items) {