mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-01-19 16:59:36 +01:00
release v2.5.11
This commit is contained in:
parent
1837a9a247
commit
7f4037e1ed
@ -1359,7 +1359,7 @@ public class PlotMain extends JavaPlugin implements Listener {
|
|||||||
killAllEntities();
|
killAllEntities();
|
||||||
}
|
}
|
||||||
if (C.ENABLED.s().length() > 0) {
|
if (C.ENABLED.s().length() > 0) {
|
||||||
Broadcast(C.ENABLED);
|
sendConsoleSenderMessage(C.ENABLED);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add tables to this one, if we create more :D
|
// Add tables to this one, if we create more :D
|
||||||
@ -1475,7 +1475,7 @@ public class PlotMain extends JavaPlugin implements Listener {
|
|||||||
final String version = worldEdit.getDescription().getVersion();
|
final String version = worldEdit.getDescription().getVersion();
|
||||||
if ((version != null) && version.startsWith("5.")) {
|
if ((version != null) && version.startsWith("5.")) {
|
||||||
PlotMain.sendConsoleSenderMessage("&cThis version of WorldEdit does not support PlotSquared.");
|
PlotMain.sendConsoleSenderMessage("&cThis version of WorldEdit does not support PlotSquared.");
|
||||||
PlotMain.sendConsoleSenderMessage("&cPlease use WorldEdit 6+");
|
PlotMain.sendConsoleSenderMessage("&cPlease use WorldEdit 6+ for masking support");
|
||||||
PlotMain.sendConsoleSenderMessage("&c - http://builds.enginehub.org/job/worldedit");
|
PlotMain.sendConsoleSenderMessage("&c - http://builds.enginehub.org/job/worldedit");
|
||||||
} else {
|
} else {
|
||||||
getServer().getPluginManager().registerEvents(new WorldEditListener(), this);
|
getServer().getPluginManager().registerEvents(new WorldEditListener(), this);
|
||||||
|
@ -130,7 +130,7 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi
|
|||||||
final Player player = event.getPlayer();
|
final Player player = event.getPlayer();
|
||||||
final Location f = event.getFrom();
|
final Location f = event.getFrom();
|
||||||
final Location t = event.getTo();
|
final Location t = event.getTo();
|
||||||
final Location q = new Location(t.getWorld(), t.getBlockX(), 64, t.getZ());
|
final Location q = new Location(t.getWorld(), t.getBlockX(), t.getBlockY(), t.getZ());
|
||||||
|
|
||||||
if ((f.getBlockX() != q.getBlockX()) || (f.getBlockZ() != q.getBlockZ())) {
|
if ((f.getBlockX() != q.getBlockX()) || (f.getBlockZ() != q.getBlockZ())) {
|
||||||
if (!isPlotWorld(player.getWorld())) {
|
if (!isPlotWorld(player.getWorld())) {
|
||||||
|
@ -79,6 +79,7 @@ public class UUIDHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void cacheAll() {
|
public static void cacheAll() {
|
||||||
|
PlotMain.sendConsoleSenderMessage(C.PREFIX.s() + "&6Starting player data caching");
|
||||||
UUIDHandler.CACHED = true;
|
UUIDHandler.CACHED = true;
|
||||||
HashSet<String> worlds = new HashSet<>();
|
HashSet<String> worlds = new HashSet<>();
|
||||||
worlds.add(Bukkit.getWorlds().get(0).getName());
|
worlds.add(Bukkit.getWorlds().get(0).getName());
|
||||||
@ -121,8 +122,6 @@ public class UUIDHandler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
UUIDWrapper wrapper = new DefaultUUIDWrapper();
|
UUIDWrapper wrapper = new DefaultUUIDWrapper();
|
||||||
for (UUID uuid : uuids) {
|
for (UUID uuid : uuids) {
|
||||||
try {
|
try {
|
||||||
@ -141,7 +140,6 @@ public class UUIDHandler {
|
|||||||
StringWrapper nameWrap = new StringWrapper(name);
|
StringWrapper nameWrap = new StringWrapper(name);
|
||||||
add(nameWrap, uuid);
|
add(nameWrap, uuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
PlotMain.sendConsoleSenderMessage(C.PREFIX.s() + "&6Cached a total of: " + UUIDHandler.uuidMap.size() + " UUIDs");
|
PlotMain.sendConsoleSenderMessage(C.PREFIX.s() + "&6Cached a total of: " + UUIDHandler.uuidMap.size() + " UUIDs");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user