mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 15:16:45 +01:00
Some fixes
Fixes #641 Closes #640 (need to also update Plot2Dynmap) Fixes #637 (duplicate) Fixes #636 Fixes #634
This commit is contained in:
parent
d42ef3cf63
commit
a93e8fac38
@ -1277,7 +1277,7 @@ public class PS {
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
if (((plotWorld.TYPE == 2) && !Settings.ENABLE_CLUSTERS) || !(plotManager instanceof SquarePlotManager)) {
|
if (((plotWorld.TYPE == 2) && !Settings.ENABLE_CLUSTERS) || !(plotManager instanceof SquarePlotManager)) {
|
||||||
log("&c[ERROR] World '" + world + "' in settings.yml is not using PlotSquared generator! Please set the generator correctly or delete the world from the 'settings.yml'!");
|
log("&c[ERROR] World '" + world + "' in settings.yml is not using PlotSquared generator! Please set the generator correctly or delete the world from the 'settings.yml'! (https://github.com/IntellectualSites/PlotSquared/wiki/Manual-generator-setting)");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
log(C.PREFIX.s() + "&aDetected world load for '" + world + "'");
|
log(C.PREFIX.s() + "&aDetected world load for '" + world + "'");
|
||||||
|
@ -100,7 +100,7 @@ public class Merge extends SubCommand {
|
|||||||
final int size = plot.getConnectedPlots().size();
|
final int size = plot.getConnectedPlots().size();
|
||||||
final int maxSize = Permissions.hasPermissionRange(plr, "plots.merge", Settings.MAX_PLOTS);
|
final int maxSize = Permissions.hasPermissionRange(plr, "plots.merge", Settings.MAX_PLOTS);
|
||||||
if (size >= maxSize) {
|
if (size >= maxSize) {
|
||||||
MainUtil.sendMessage(plr, C.NO_PERMISSION, "plots.merge." + size);
|
MainUtil.sendMessage(plr, C.NO_PERMISSION, "plots.merge." + (size + 1));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (args.length == 0) {
|
if (args.length == 0) {
|
||||||
|
@ -316,8 +316,8 @@ public abstract class HybridUtils {
|
|||||||
final int tz = sz - 1;
|
final int tz = sz - 1;
|
||||||
final int ty = get_ey(world, bx, tx, bz, tz, by);
|
final int ty = get_ey(world, bx, tx, bz, tz, by);
|
||||||
|
|
||||||
final Set<RegionWrapper> sideroad = new HashSet<>(Arrays.asList(new RegionWrapper(sx, ex, sz, ez)));
|
final Set<RegionWrapper> sideroad = new HashSet<>(Arrays.asList(new RegionWrapper(sx, ex, sy, ey, sz, ez)));
|
||||||
final Set<RegionWrapper> intersection = new HashSet<>(Arrays.asList(new RegionWrapper(bx, tx, bz, tz)));
|
final Set<RegionWrapper> intersection = new HashSet<>(Arrays.asList(new RegionWrapper(bx, tx, by, ty, bz, tz)));
|
||||||
|
|
||||||
final Location pos3 = new Location(world, bx, by, bz);
|
final Location pos3 = new Location(world, bx, by, bz);
|
||||||
final Location pos4 = new Location(world, tx, ty, tz);
|
final Location pos4 = new Location(world, tx, ty, tz);
|
||||||
|
@ -2127,7 +2127,7 @@ public class MainUtil {
|
|||||||
if (!tmp.getMerged(2)) {
|
if (!tmp.getMerged(2)) {
|
||||||
// invalid merge
|
// invalid merge
|
||||||
PS.debug("Fixing invalid merge: " + plot);
|
PS.debug("Fixing invalid merge: " + plot);
|
||||||
tmp.settings.setMerged(2, true);
|
tmp.getSettings().setMerged(2, true);
|
||||||
DBFunc.setMerged(tmp, tmp.settings.getMerged());
|
DBFunc.setMerged(tmp, tmp.settings.getMerged());
|
||||||
}
|
}
|
||||||
queuecache.add(tmp);
|
queuecache.add(tmp);
|
||||||
@ -2138,7 +2138,7 @@ public class MainUtil {
|
|||||||
if (!tmp.getMerged(3)) {
|
if (!tmp.getMerged(3)) {
|
||||||
// invalid merge
|
// invalid merge
|
||||||
PS.debug("Fixing invalid merge: " + plot);
|
PS.debug("Fixing invalid merge: " + plot);
|
||||||
tmp.settings.setMerged(3, true);
|
tmp.getSettings().setMerged(3, true);
|
||||||
DBFunc.setMerged(tmp, tmp.settings.getMerged());
|
DBFunc.setMerged(tmp, tmp.settings.getMerged());
|
||||||
}
|
}
|
||||||
queuecache.add(tmp);
|
queuecache.add(tmp);
|
||||||
@ -2149,7 +2149,7 @@ public class MainUtil {
|
|||||||
if (!tmp.getMerged(0)) {
|
if (!tmp.getMerged(0)) {
|
||||||
// invalid merge
|
// invalid merge
|
||||||
PS.debug("Fixing invalid merge: " + plot);
|
PS.debug("Fixing invalid merge: " + plot);
|
||||||
tmp.settings.setMerged(0, true);
|
tmp.getSettings().setMerged(0, true);
|
||||||
DBFunc.setMerged(tmp, tmp.settings.getMerged());
|
DBFunc.setMerged(tmp, tmp.settings.getMerged());
|
||||||
}
|
}
|
||||||
queuecache.add(tmp);
|
queuecache.add(tmp);
|
||||||
@ -2160,7 +2160,7 @@ public class MainUtil {
|
|||||||
if (!tmp.getMerged(1)) {
|
if (!tmp.getMerged(1)) {
|
||||||
// invalid merge
|
// invalid merge
|
||||||
PS.debug("Fixing invalid merge: " + plot);
|
PS.debug("Fixing invalid merge: " + plot);
|
||||||
tmp.settings.setMerged(1, true);
|
tmp.getSettings().setMerged(1, true);
|
||||||
DBFunc.setMerged(tmp, tmp.settings.getMerged());
|
DBFunc.setMerged(tmp, tmp.settings.getMerged());
|
||||||
}
|
}
|
||||||
queuecache.add(tmp);
|
queuecache.add(tmp);
|
||||||
|
@ -1120,6 +1120,9 @@ public class PlayerEvents extends com.plotsquared.listener.PlotListener implemen
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
|
if (blockId > 197) {
|
||||||
|
eventType = PlayerBlockEventType.INTERACT_BLOCK;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user