Added chat spy toggle

This commit is contained in:
boy0001
2015-09-01 15:09:46 +10:00
parent 6006b0e011
commit ea6d5778c8
2 changed files with 25 additions and 11 deletions

View File

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