Fixed: Claim managers can /untrust.

They shouldn't be able to do this.  Only an owner can /untrust, since
/untrust also revokes manager-level permissions.
This commit is contained in:
ryanhamshire 2015-06-09 21:10:47 -07:00
parent d9d2664570
commit 1b650a59b2

View File

@ -1259,9 +1259,9 @@ public class GriefPrevention extends JavaPlugin
{ {
idToDrop = otherPlayer.getUniqueId().toString(); idToDrop = otherPlayer.getUniqueId().toString();
} }
claim.dropPermission(idToDrop);
if(claim.allowEdit(player) == null) if(claim.allowEdit(player) == null)
{ {
claim.dropPermission(idToDrop);
claim.managers.remove(idToDrop); claim.managers.remove(idToDrop);
//beautify for output //beautify for output
@ -1274,7 +1274,8 @@ public class GriefPrevention extends JavaPlugin
} }
else else
{ {
GriefPrevention.sendMessage(player, TextMode.Success, Messages.UntrustOwnerOnly, claim.getOwnerName()); GriefPrevention.sendMessage(player, TextMode.Err, Messages.UntrustOwnerOnly, claim.getOwnerName());
return true;
} }
} }