mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 07:06:44 +01:00
optional debugclear/fastclear for classic plot worlds
This commit is contained in:
parent
20d64508a5
commit
10ad9261b1
@ -765,6 +765,7 @@ public class PlotSquared {
|
|||||||
|
|
||||||
|
|
||||||
options.put("clusters.enabled", Settings.ENABLE_CLUSTERS);
|
options.put("clusters.enabled", Settings.ENABLE_CLUSTERS);
|
||||||
|
options.put("clear.fastmode", Settings.ENABLE_CLUSTERS);
|
||||||
options.put("plotme-alias", Settings.USE_PLOTME_ALIAS);
|
options.put("plotme-alias", Settings.USE_PLOTME_ALIAS);
|
||||||
options.put("plotme-convert.enabled", Settings.CONVERT_PLOTME);
|
options.put("plotme-convert.enabled", Settings.CONVERT_PLOTME);
|
||||||
options.put("claim.max-auto-area", Settings.MAX_AUTO_SIZE);
|
options.put("claim.max-auto-area", Settings.MAX_AUTO_SIZE);
|
||||||
@ -802,6 +803,7 @@ public class PlotSquared {
|
|||||||
Settings.CONFIRM_CLEAR = config.getBoolean("confirmation.clear");
|
Settings.CONFIRM_CLEAR = config.getBoolean("confirmation.clear");
|
||||||
Settings.CONFIRM_DELETE = config.getBoolean("confirmation.delete");
|
Settings.CONFIRM_DELETE = config.getBoolean("confirmation.delete");
|
||||||
Settings.CONFIRM_UNLINK = config.getBoolean("confirmation.unlink");
|
Settings.CONFIRM_UNLINK = config.getBoolean("confirmation.unlink");
|
||||||
|
Settings.FAST_CLEAR = config.getBoolean("clear.fastmode");
|
||||||
|
|
||||||
Settings.TELEPORT_DELAY = config.getInt("teleport.delay");
|
Settings.TELEPORT_DELAY = config.getInt("teleport.delay");
|
||||||
Settings.CONSOLE_COLOR = config.getBoolean("console.color");
|
Settings.CONSOLE_COLOR = config.getBoolean("console.color");
|
||||||
|
@ -28,6 +28,7 @@ package com.intellectualcrafters.plot.config;
|
|||||||
*/
|
*/
|
||||||
public class Settings {
|
public class Settings {
|
||||||
public static boolean ENABLE_CLUSTERS = false;
|
public static boolean ENABLE_CLUSTERS = false;
|
||||||
|
public static boolean FAST_CLEAR = false;
|
||||||
/**
|
/**
|
||||||
* Default UUID_FECTHING: false
|
* Default UUID_FECTHING: false
|
||||||
*/
|
*/
|
||||||
|
@ -527,7 +527,7 @@ public class MainUtil {
|
|||||||
final Location location = MainUtil.getPlotHomeDefault(plot);
|
final Location location = MainUtil.getPlotHomeDefault(plot);
|
||||||
final PlotWorld plotworld = PlotSquared.getPlotWorld(world);
|
final PlotWorld plotworld = PlotSquared.getPlotWorld(world);
|
||||||
runners.put(plot, 1);
|
runners.put(plot, 1);
|
||||||
if (plotworld.TERRAIN != 0) {
|
if (plotworld.TERRAIN != 0 || Settings.FAST_CLEAR) {
|
||||||
final Location pos2 = MainUtil.getPlotTopLoc(world, plot.id);
|
final Location pos2 = MainUtil.getPlotTopLoc(world, plot.id);
|
||||||
ChunkManager.manager.regenerateRegion(pos1, pos2, new Runnable() {
|
ChunkManager.manager.regenerateRegion(pos1, pos2, new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user