mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 07:06:44 +01:00
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:
parent
c391fee100
commit
2eda56bc1f
@ -946,7 +946,7 @@ public class PlayerEvents extends PlotListener implements Listener {
|
|||||||
|| area.isForcingPlotChat())) {
|
|| area.isForcingPlotChat())) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (plot.isDenied(plotPlayer.getUUID())) {
|
if (plot.isDenied(plotPlayer.getUUID()) && !plotPlayer.hasPermission("plots.admin.command.chat")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user