kinda ugly but it works

inventory saving: complete
This commit is contained in:
Super_
2019-12-11 17:55:44 -05:00
parent f758be9e70
commit 135d1af27d
4 changed files with 139 additions and 1 deletions

View File

@ -180,7 +180,9 @@ public class PlayerList extends FreedomService
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onPlayerQuit(PlayerQuitEvent event)
{
final String ip = Ips.getIp(event.getPlayer());
plugin.pv.save();
final Player player = event.getPlayer();
final String ip = Ips.getIp(player);
playerMap.remove(ip);
dataMap.remove(ip);
}