mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-23 00:15:06 +00:00
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:
parent
4d1b08a628
commit
f1d10c96bc
2 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue