Merge pull request #1 from IntellectualSites/master

Up
This commit is contained in:
Gabriele C 2016-01-20 12:44:33 +01:00
commit efeecd423e
2 changed files with 2 additions and 6 deletions

View File

@ -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;
}

View File

@ -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()));
}
}
}