исправил тупые и не очень ошибки

This commit is contained in:
ScriptCat 2025-07-23 17:00:24 +03:00
parent 324ef74e70
commit 8107dc8675

View File

@ -12,7 +12,7 @@ import java.lang.reflect.Method;
public class NBTManager
{
public void write(Player player, String path)
public boolean write(Player player, String path)
{
EntityPlayer entityPlayer = getPlayer(player);
@ -22,7 +22,7 @@ public class NBTManager
tag.setInt("ASOME", 123);
return writeNBT(tag, entityPlayer, path + "/players/" + player.getName() + ".dat")
return writeNBT(tag, entityPlayer, path + "/players/" + player.getName() + ".dat");
}
@ -48,6 +48,7 @@ public class NBTManager
return false;
}
return true;
}
private NBTTagCompound readNBT(EntityPlayer entityPlayer)