mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 21:26:45 +01:00
parent
6bf2fbcfcf
commit
177b33154f
@ -117,8 +117,10 @@ public class LikePlotMeConverter {
|
|||||||
PS.get().worlds.set("worlds." + world + ".plot.height", height);
|
PS.get().worlds.set("worlds." + world + ".plot.height", height);
|
||||||
int plotSize = plotmeDgYml.getInt("worlds." + plotMeWorldName + ".PlotSize", 32); //
|
int plotSize = plotmeDgYml.getInt("worlds." + plotMeWorldName + ".PlotSize", 32); //
|
||||||
PS.get().worlds.set("worlds." + world + ".plot.size", plotSize);
|
PS.get().worlds.set("worlds." + world + ".plot.size", plotSize);
|
||||||
String wallblock = plotmeDgYml.getString("worlds." + plotMeWorldName + ".WallBlock", "44"); //
|
String wallblock = plotmeDgYml.getString("worlds." + plotMeWorldName + ".WallBlock", plotmeDgYml.getString("worlds." + plotMeWorldName + ".UnclaimedBorder", "44")); //
|
||||||
PS.get().worlds.set("worlds." + world + ".wall.block", wallblock);
|
PS.get().worlds.set("worlds." + world + ".wall.block", wallblock);
|
||||||
|
String claimed = plotmeDgYml.getString("worlds." + plotMeWorldName + ".ProtectedWallBlock", "44:1"); //
|
||||||
|
PS.get().worlds.set("worlds." + world + ".wall.block_claimed", claimed);
|
||||||
String floor = plotmeDgYml.getString("worlds." + plotMeWorldName + ".PlotFloorBlock", "2"); //
|
String floor = plotmeDgYml.getString("worlds." + plotMeWorldName + ".PlotFloorBlock", "2"); //
|
||||||
PS.get().worlds.set("worlds." + world + ".plot.floor", Collections.singletonList(floor));
|
PS.get().worlds.set("worlds." + world + ".plot.floor", Collections.singletonList(floor));
|
||||||
String filling = plotmeDgYml.getString("worlds." + plotMeWorldName + ".FillBlock", "3"); //
|
String filling = plotmeDgYml.getString("worlds." + plotMeWorldName + ".FillBlock", "3"); //
|
||||||
|
@ -202,8 +202,19 @@ public class PlayerEvents extends PlotListener implements Listener {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (Settings.Redstone.DISABLE_OFFLINE) {
|
if (Settings.Redstone.DISABLE_OFFLINE) {
|
||||||
if (UUIDHandler.getPlayer(plot.owner) == null) {
|
boolean disable;
|
||||||
boolean disable = true;
|
if (plot.isMerged()) {
|
||||||
|
disable = true;
|
||||||
|
for (UUID owner : plot.getOwners()) {
|
||||||
|
if (UUIDHandler.getPlayer(owner) != null) {
|
||||||
|
disable = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
disable = UUIDHandler.getPlayer(plot.owner) == null;
|
||||||
|
}
|
||||||
|
if (disable) {
|
||||||
for (UUID trusted : plot.getTrusted()) {
|
for (UUID trusted : plot.getTrusted()) {
|
||||||
if (UUIDHandler.getPlayer(trusted) != null) {
|
if (UUIDHandler.getPlayer(trusted) != null) {
|
||||||
disable = false;
|
disable = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user