mirror of
https://github.com/TotalFreedomMC/OpenInv.git
synced 2024-12-22 16:05:03 +00:00
General refactoring
This commit is contained in:
parent
c7f38adb3f
commit
4811e53d12
2 changed files with 4 additions and 9 deletions
|
@ -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, SpecialEnderChest> enderChests = new HashMap<UUID, SpecialEnderChest>();
|
||||
|
||||
private Configuration configuration;
|
||||
|
||||
private PlayerDataManager playerLoader;
|
||||
private InventoryAccess inventoryAccess;
|
||||
private AnySilentChest anySilentChest;
|
||||
|
||||
private Configuration configuration;
|
||||
|
||||
@Override
|
||||
public void onEnable() {
|
||||
// Save the default config.yml if it doesn't already exist
|
||||
|
|
|
@ -77,14 +77,9 @@ public class OpenInvPlayerListener implements Listener {
|
|||
}.runTaskLater(plugin, 1);
|
||||
}
|
||||
|
||||
final SpecialEnderChest enderChest = OpenInv.enderChests.get(player.getUniqueId());
|
||||
SpecialEnderChest enderChest = OpenInv.enderChests.get(player.getUniqueId());
|
||||
if (enderChest != null) {
|
||||
new BukkitRunnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
enderChest.playerOffline();
|
||||
}
|
||||
}.runTaskLater(plugin, 1);
|
||||
enderChest.playerOffline();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue