offline player lookup should work now, but i still need to allow for nbt data lookup as well.
This commit is contained in:
Super_
2019-12-11 22:17:05 -05:00
parent 135d1af27d
commit c096c4a781
3 changed files with 41 additions and 6 deletions

View File

@ -64,7 +64,14 @@ public class VPlayer implements ConfigLoadable, ConfigSavable, Validatable
tag = cs.getString("tag", null);
clearChatOptOut = cs.getBoolean("clearChatOptOut", false);
rideToggle = cs.getBoolean("rideToggle", true);
inventory = new ConfigInventory(Bukkit.getPlayer(name).getInventory());
if (!cs.contains("inventory") || Bukkit.getPlayer(name) != null)
{
inventory = new ConfigInventory(Bukkit.getPlayer(name).getInventory());
}
else
{
inventory = ConfigInventory.createInventoryFromConfig(cs);
}
}
@Override