mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-29 04:04:43 +02:00
Added chat spy toggle
This commit is contained in:
@ -626,7 +626,7 @@ public class PlayerEvents extends com.plotsquared.listener.PlotListener implemen
|
||||
recipients.clear();
|
||||
for (final Player p : Bukkit.getOnlinePlayers()) {
|
||||
PlotPlayer pp = BukkitUtil.getPlayer(p);
|
||||
if (Permissions.hasPermission(pp, C.PERMISSION_COMMANDS_CHAT) || plot.equals(pp.getCurrentPlot())) {
|
||||
if (pp.getAttribute("chatspy") || plot.equals(pp.getCurrentPlot())) {
|
||||
recipients.add(p);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user