This commit is contained in:
Xephi 2015-06-03 01:41:43 +02:00
parent b75adf6a98
commit 140a807a59

View File

@ -96,6 +96,7 @@ public class LogoutCommand implements CommandExecutor {
// create cache file for handling lost of inventories on unlogged in
// status
DataFileCache playerData = new DataFileCache(LimboCache.getInstance().getLimboPlayer(name).getInventory(), LimboCache.getInstance().getLimboPlayer(name).getArmour());
if (playerData != null)
playerBackup.createCache(player, playerData, LimboCache.getInstance().getLimboPlayer(name).getGroup(), LimboCache.getInstance().getLimboPlayer(name).getOperator(), LimboCache.getInstance().getLimboPlayer(name).isFlying());
}