Added PERMISSIONS_ADMIN_CHAT_BYPASS enum for the permission plots.admin.chat.bypass allowing users to bypass the plot chat security feature.

This commit is contained in:
Cheezybo99 2020-04-19 11:32:09 +01:00 committed by Alexander Söderberg
parent 4d1b08a628
commit f1d10c96bc
2 changed files with 2 additions and 1 deletions

View File

@ -946,7 +946,7 @@ public class PlayerEvents extends PlotListener implements Listener {
|| area.isForcingPlotChat())) {
return;
}
if (plot.isDenied(plotPlayer.getUUID()) && !Permissions.hasPermission(plotPlayer, Captions.PERMISSION_COMMANDS_CHAT)) {
if (plot.isDenied(plotPlayer.getUUID()) && !Permissions.hasPermission(plotPlayer, Captions.PERMISSION_ADMIN_CHAT_BYPASS)) {
return;
}
event.setCancelled(true);

View File

@ -183,6 +183,7 @@ public enum Captions implements Caption {
PERMISSION_ALIAS_SET_OBSOLETE("plots.set.alias", "static.permissions"), // Note this is for backwards compatibility
PERMISSION_ALIAS_SET("plots.alias.set", "static.permissions"),
PERMISSION_ALIAS_REMOVE("plots.alias.remove", "static.permissions"),
PERMISSION_ADMIN_CHAT_BYPASS("plots.admin.chat.bypass", "static.permissions"),
//</editor-fold>
//<editor-fold desc="Static Console">
CONSOLE_JAVA_OUTDATED(