Added permission to see all plot chat

plots.admin.command.chat
This commit is contained in:
confuser 2015-06-10 10:51:52 +01:00
parent c21b714898
commit fbb35ec6fa

View File

@ -410,7 +410,7 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi
final Set<Player> recipients = event.getRecipients(); final Set<Player> recipients = event.getRecipients();
recipients.clear(); recipients.clear();
for (final Player p : Bukkit.getOnlinePlayers()) { for (final Player p : Bukkit.getOnlinePlayers()) {
if (plot.equals(MainUtil.getPlot(BukkitUtil.getLocation(p)))) { if (p.hasPermission("plots.admin.command.chat") || plot.equals(MainUtil.getPlot(BukkitUtil.getLocation(p)))) {
recipients.add(p); recipients.add(p);
} }
} }