Player data glitch fix and changes #39

Merged
ShadowRanger merged 7 commits from master into master 2016-04-12 00:38:37 -04:00
24 changed files with 449 additions and 197 deletions
Showing only changes of commit 4811e53d12 - Show all commits

View File

@@ -48,12 +48,12 @@ public class OpenInv extends JavaPlugin {
public static final Map<UUID, SpecialPlayerInventory> inventories = new HashMap<UUID, SpecialPlayerInventory>(); public static final Map<UUID, SpecialPlayerInventory> inventories = new HashMap<UUID, SpecialPlayerInventory>();
public static final Map<UUID, SpecialEnderChest> enderChests = new HashMap<UUID, SpecialEnderChest>(); public static final Map<UUID, SpecialEnderChest> enderChests = new HashMap<UUID, SpecialEnderChest>();
private Configuration configuration;
private PlayerDataManager playerLoader; private PlayerDataManager playerLoader;
private InventoryAccess inventoryAccess; private InventoryAccess inventoryAccess;
private AnySilentChest anySilentChest; private AnySilentChest anySilentChest;
private Configuration configuration;
@Override @Override
public void onEnable() { public void onEnable() {
// Save the default config.yml if it doesn't already exist // Save the default config.yml if it doesn't already exist

View File

@@ -77,15 +77,10 @@ public class OpenInvPlayerListener implements Listener {
}.runTaskLater(plugin, 1); }.runTaskLater(plugin, 1);
} }
final SpecialEnderChest enderChest = OpenInv.enderChests.get(player.getUniqueId()); SpecialEnderChest enderChest = OpenInv.enderChests.get(player.getUniqueId());
if (enderChest != null) { if (enderChest != null) {
new BukkitRunnable() {
@Override
public void run() {
enderChest.playerOffline(); enderChest.playerOffline();
} }
}.runTaskLater(plugin, 1);
}
} }
@EventHandler @EventHandler