Add PlayerDataMap + Regenerating PlayerData button

This commit is contained in:
Kam committed 2023-05-10 15:06:07 -04:00
1 parent dd14f3ded0
commit ed97534e67
5 files changed
+224 -29

No files matched your search

@@ -475,6 +475,7 @@ public class NoppesUtilServer {
}
else {
PlayerDataController.instance.nameUUIDs.remove(name);
PlayerDataController.instance.savePlayerDataMap();
}
}
if(type == EnumPlayerData.Quest){
@@ -506,6 +507,10 @@ public class NoppesUtilServer {
}
sendPlayerData(type, player, name);
}
public static void regenPlayerData(EntityPlayerMP player) throws IOException {
PlayerDataController.instance.generatePlayerMap(player);
}
public static void sendRecipeData(EntityPlayerMP player, int size) {
HashMap<String,Integer> map = new HashMap<String,Integer>();