mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
commit
efeecd423e
@ -42,11 +42,7 @@ public class PlotHandler {
|
||||
if (!plot.isMerged()) {
|
||||
return false;
|
||||
}
|
||||
Set<Plot> plots;
|
||||
synchronized (Bukkit.getServer()) {
|
||||
plots = MainUtil.getConnectedPlots(plot);
|
||||
}
|
||||
for (Plot current : plots) {
|
||||
for (Plot current : MainUtil.getConnectedPlots(plot);) {
|
||||
if (current.owner.equals(uuid)) {
|
||||
return true;
|
||||
}
|
||||
|
@ -93,7 +93,7 @@ public class PlotListener {
|
||||
for (final UUID uuid : PlotHandler.getOwners(plot)) {
|
||||
final PlotPlayer owner = UUIDHandler.getPlayer(uuid);
|
||||
if ((owner != null) && !owner.getUUID().equals(pp.getUUID())) {
|
||||
MainUtil.sendMessage(pp, C.NOTIFY_ENTER.s().replace("%player", pp.getName()).replace("%plot", plot.getId().toString()));
|
||||
MainUtil.sendMessage(owner, C.NOTIFY_ENTER.s().replace("%player", pp.getName()).replace("%plot", plot.getId().toString()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user