Allow teleport upon claiming to be configurable

This commit is contained in:
cyberpwn 2018-12-31 00:00:38 -05:00
parent 9d3edcf5a5
commit 278f754e15
2 changed files with 3 additions and 1 deletions

View file

@ -93,7 +93,7 @@ public class Claim extends SubCommand {
TaskManager.IMP.sync(new RunnableVal<Object>() {
@Override
public void run(Object value) {
plot.claim(player, true, finalSchematic, false);
plot.claim(player, Settings.Claim.TELEPORT_ON_CLAIM, finalSchematic, false);
if (area.AUTO_MERGE) {
plot.autoMerge(-1, Integer.MAX_VALUE, player.getUUID(), true);
}

View file

@ -287,6 +287,8 @@ public class Settings extends Config {
public static final class Claim {
@Comment("The max plots claimed in a single `/plot auto <size>` command")
public static int MAX_AUTO_AREA = 4;
@Comment("Teleport upon claiming a plot")
public static boolean TELEPORT_ON_CLAIM = true;
}
public static final class Ratings {