mirror of
https://github.com/BentoBoxWorld/Level.git
synced 2025-01-26 09:21:20 +01:00
Saves level data when a player does level
https://github.com/BentoBoxWorld/Level/issues/38
This commit is contained in:
parent
97fb434244
commit
e1dc26fa86
@ -180,6 +180,7 @@ public class Level extends Addon {
|
|||||||
// Add to cache
|
// Add to cache
|
||||||
levelsCache.put(targetPlayer, ld);
|
levelsCache.put(targetPlayer, ld);
|
||||||
topTen.addEntry(world, targetPlayer, getIslandLevel(world, targetPlayer));
|
topTen.addEntry(world, targetPlayer, getIslandLevel(world, targetPlayer));
|
||||||
|
handler.saveObject(ld);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user