Quote from hide100
Hello again! Here, look. I did everything as written in the tutorial, but I do now when killing creatures is not given "my new level" (although it should be given). What's wrong with this code wrong?
Move this line from saveNBTData to loadNBTData:
this.player.getDataWatcher().updateObject(levelID, properties.getInteger("newLevel")); // and remove this line, as it's not needed anymore: this.level = properties.getInteger("newLevel");
Also, since you are using DataWatcher to track your level, you don't need to send a packet or worry about syncing anything at this point.
1