mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-26 02:34:42 +02:00
Reformat code
This commit is contained in:
@ -5,11 +5,9 @@ This will increase a player's allowed plots by the provided value
|
||||
var uuid = UUIDHandler.getUUID('%s0', null);
|
||||
if (uuid === null) {
|
||||
C_INVALID_PLAYER.send(PlotPlayer, '%s0');
|
||||
}
|
||||
else if (!MathMan.class.static.isInteger('%s1')) {
|
||||
} else if (!MathMan.class.static.isInteger('%s1')) {
|
||||
C_NOT_VALID_NUMBER.send(PlotPlayer, '(0, ' + Settings.MAX_PLOTS + ')');
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
var amount = parseInt('%s1');
|
||||
var pp = IMP.wrapPlayer(UUIDHandler.getUUIDWrapper().getOfflinePlayer(uuid).player);
|
||||
var allowed = pp.getAllowedPlots();
|
||||
|
@ -35,14 +35,12 @@ if ("%s0" === "true") {
|
||||
var plot = plots.get(i);
|
||||
plot.autoMerge(-1, 250000, plot.owner, true);
|
||||
}
|
||||
}
|
||||
else if ("%s0" === "false") {
|
||||
} else if ("%s0" === "false") {
|
||||
for (var i = 0; i < plots.size(); i++) {
|
||||
var plot = plots.get(i);
|
||||
plot.autoMerge(-1, 250000, plot.owner, false);
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
C_COMMAND_SYNTAX.send(PlotPlayer, "/plot debugexec automerge.js <removeroads>");
|
||||
MainUtil.class.static.sendMessage(PlotPlayer, "$1<removeroads> is true or false if you want to remove roads when auto merging");
|
||||
}
|
||||
|
@ -27,7 +27,6 @@ if (PS.hasPlotArea("%s0")) {
|
||||
}
|
||||
}
|
||||
PS.class.static.log(plot);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
PlotPlayer.sendMessage("Usage: /plot debugexec runasync furthest.js <plotworld>");
|
||||
}
|
||||
|
Reference in New Issue
Block a user