diff --git a/src/main/java/com/lishid/openinv/listeners/OpenInvPlayerListener.java b/src/main/java/com/lishid/openinv/listeners/OpenInvPlayerListener.java index df7d2b7..22949a9 100644 --- a/src/main/java/com/lishid/openinv/listeners/OpenInvPlayerListener.java +++ b/src/main/java/com/lishid/openinv/listeners/OpenInvPlayerListener.java @@ -66,9 +66,9 @@ public class OpenInvPlayerListener implements Listener { player.updateInventory(); } - SpecialEnderChest chest = plugin.getPlayerEnderChest(player, false); - if (chest != null) { - chest.playerOnline(player); + SpecialEnderChest enderChest = plugin.getPlayerEnderChest(player, false); + if (enderChest != null) { + enderChest.playerOnline(player); } } }.runTask(plugin);