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);