Merge pull request #350 from confuser/master

Added permission to see all plot chat
This commit is contained in:
Jesse Boyd 2015-06-11 00:13:13 +10:00
commit a2e922b06a

View File

@ -410,7 +410,7 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi
final Set<Player> recipients = event.getRecipients();
recipients.clear();
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);
}
}