Skip to content

Commit

Permalink
Removes permission requirement to accept a coop
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed May 12, 2018
1 parent 4d44427 commit 6169f87
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/com/wasteofplastic/askyblock/commands/IslandCmd.java
Original file line number Diff line number Diff line change
Expand Up @@ -1850,7 +1850,6 @@ public void run() {
}
} else if (split[0].equalsIgnoreCase("coopaccept")) {
// Accept an invite command
if (VaultHelper.checkPerm(player, Settings.PERMPREFIX + "coop")) {
if (coopInviteList.containsKey(playerUUID)) {
// Check if inviter is online
Player inviter = plugin.getServer().getPlayer(coopInviteList.get(playerUUID));
Expand All @@ -1872,10 +1871,6 @@ public void run() {
}
Util.sendMessage(player, ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorCommandNotReady);
return true;
} else {
Util.sendMessage(player, ChatColor.RED + plugin.myLocale(playerUUID).errorNoPermission);
return true;
}
} else if (split[0].equalsIgnoreCase("accept")) {
// Accept an invite command
if (VaultHelper.checkPerm(player, Settings.PERMPREFIX + "team.join")) {
Expand Down

0 comments on commit 6169f87

Please sign in to comment.