If all players are denied from a plot, this will allow administrators with permission to see chatspy, talk in plots they have been denied from.

This commit is contained in:
Cheezybo99 2020-04-18 21:42:51 +01:00 committed by Alexander Söderberg
parent c391fee100
commit 2eda56bc1f

View File

@ -946,7 +946,7 @@ public class PlayerEvents extends PlotListener implements Listener {
|| area.isForcingPlotChat())) {
return;
}
if (plot.isDenied(plotPlayer.getUUID())) {
if (plot.isDenied(plotPlayer.getUUID()) && !plotPlayer.hasPermission("plots.admin.command.chat")) {
return;
}
event.setCancelled(true);