mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-12 12:13:57 +00:00
Merge pull request #350 from confuser/master
Added permission to see all plot chat
This commit is contained in:
commit
a2e922b06a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue