mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-07-06 07:34:42 +02:00
Merge pull request #350 from confuser/master
Added permission to see all plot chat
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user