mirror of
https://github.com/bloodmc/GriefDefender.git
synced 2025-01-02 18:48:03 +01:00
Fix wrong permission with cuboid subdivision creation. Fixes #277
This commit is contained in:
parent
2de749037d
commit
03f2226e9c
@ -590,7 +590,7 @@ public boolean canCreateClaim(Player player, boolean sendMessage) {
|
||||
GriefDefenderPlugin.sendMessage(player, MessageCache.getInstance().PERMISSION_CLAIM_CREATE);
|
||||
}
|
||||
return false;
|
||||
} else if (!player.hasPermission(GDPermissions.CLAIM_CUBOID_SUBDIVISION)) {
|
||||
} else if (createMode == CreateModeTypes.VOLUME && !player.hasPermission(GDPermissions.CLAIM_CUBOID_SUBDIVISION)) {
|
||||
if (sendMessage) {
|
||||
GriefDefenderPlugin.sendMessage(player, MessageCache.getInstance().PERMISSION_CUBOID);
|
||||
GriefDefenderPlugin.sendMessage(player, MessageCache.getInstance().COMMAND_CUBOID_DISABLED);
|
||||
|
@ -595,7 +595,7 @@ public boolean canCreateClaim(Player player, boolean sendMessage) {
|
||||
GriefDefenderPlugin.sendMessage(player, MessageCache.getInstance().PERMISSION_CLAIM_CREATE);
|
||||
}
|
||||
return false;
|
||||
} else if (!player.hasPermission(GDPermissions.CLAIM_CUBOID_SUBDIVISION)) {
|
||||
} else if (createMode == CreateModeTypes.VOLUME && !player.hasPermission(GDPermissions.CLAIM_CUBOID_SUBDIVISION)) {
|
||||
if (sendMessage) {
|
||||
GriefDefenderPlugin.sendMessage(player, MessageCache.getInstance().PERMISSION_CUBOID);
|
||||
GriefDefenderPlugin.sendMessage(player, MessageCache.getInstance().COMMAND_CUBOID_DISABLED);
|
||||
|
Loading…
Reference in New Issue
Block a user