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:
parent
d9d2664570
commit
1b650a59b2
|
|
@ -1259,9 +1259,9 @@ public class GriefPrevention extends JavaPlugin
|
|||
{
|
||||
idToDrop = otherPlayer.getUniqueId().toString();
|
||||
}
|
||||
claim.dropPermission(idToDrop);
|
||||
if(claim.allowEdit(player) == null)
|
||||
{
|
||||
claim.dropPermission(idToDrop);
|
||||
claim.managers.remove(idToDrop);
|
||||
|
||||
//beautify for output
|
||||
|
|
@ -1274,7 +1274,8 @@ public class GriefPrevention extends JavaPlugin
|
|||
}
|
||||
else
|
||||
{
|
||||
GriefPrevention.sendMessage(player, TextMode.Success, Messages.UntrustOwnerOnly, claim.getOwnerName());
|
||||
GriefPrevention.sendMessage(player, TextMode.Err, Messages.UntrustOwnerOnly, claim.getOwnerName());
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user