mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-04 11:35:45 +00:00
Allow teleport upon claiming to be configurable
This commit is contained in:
parent
9d3edcf5a5
commit
278f754e15
2 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue