From 3e39ca54d02ea3c84faee3cec5353dfc529d7ac8 Mon Sep 17 00:00:00 2001 From: Tastybento Date: Sun, 25 Mar 2018 20:10:15 -0700 Subject: [PATCH] Fixes coop invite bug. https://github.com/tastybento/ASkyBlock-Bugs-N-Features/issues/691 --- src/com/wasteofplastic/askyblock/commands/IslandCmd.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/wasteofplastic/askyblock/commands/IslandCmd.java b/src/com/wasteofplastic/askyblock/commands/IslandCmd.java index a77d381e5..fe8ec68ed 100644 --- a/src/com/wasteofplastic/askyblock/commands/IslandCmd.java +++ b/src/com/wasteofplastic/askyblock/commands/IslandCmd.java @@ -2671,8 +2671,8 @@ public void run() { @Override public void run() { - if (coopInviteList.containsKey(targetPlayerUUID) && inviteList.get(targetPlayerUUID).equals(playerUUID)) { - inviteList.remove(targetPlayerUUID); + if (coopInviteList.containsKey(targetPlayerUUID) && coopInviteList.get(targetPlayerUUID).equals(playerUUID)) { + coopInviteList.remove(targetPlayerUUID); if (plugin.getServer().getPlayer(playerUUID) != null) { Util.sendMessage(plugin.getServer().getPlayer(playerUUID), ChatColor.YELLOW + plugin.myLocale(player.getUniqueId()).inviteremovingInvite); }