mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 22:56:45 +01:00
Remove schematic test command
This commit is contained in:
parent
6e387f3321
commit
d20d95d29b
@ -25,7 +25,7 @@ import java.util.UUID;
|
|||||||
|
|
||||||
@CommandDeclaration(command = "schematic", permission = "plots.schematic",
|
@CommandDeclaration(command = "schematic", permission = "plots.schematic",
|
||||||
description = "Schematic command", aliases = {"sch", "schem"},
|
description = "Schematic command", aliases = {"sch", "schem"},
|
||||||
category = CommandCategory.SCHEMATIC, usage = "/plot schematic <test|save|saveall|paste>")
|
category = CommandCategory.SCHEMATIC, usage = "/plot schematic <save|saveall|paste>")
|
||||||
public class SchematicCmd extends SubCommand {
|
public class SchematicCmd extends SubCommand {
|
||||||
|
|
||||||
private boolean running = false;
|
private boolean running = false;
|
||||||
@ -109,38 +109,6 @@ public class SchematicCmd extends SubCommand {
|
|||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// TODO test
|
|
||||||
// case "test": {
|
|
||||||
// if (!Permissions.hasPermission(plr, "plots.schematic.test")) {
|
|
||||||
// MainUtil.sendMessage(plr, Captions.NO_PERMISSION, "plots.schematic.test");
|
|
||||||
// return false;
|
|
||||||
// }
|
|
||||||
// if (args.length < 2) {
|
|
||||||
// sendMessage(plr, Captions.SCHEMATIC_MISSING_ARG);
|
|
||||||
// return false;
|
|
||||||
// }
|
|
||||||
// final Location loc = plr.getLocation();
|
|
||||||
// final Plot plot = MainUtil.getPlot(loc);
|
|
||||||
// if (plot == null) {
|
|
||||||
// sendMessage(plr, Captions.NOT_IN_PLOT);
|
|
||||||
// return false;
|
|
||||||
// }
|
|
||||||
// file = args[1];
|
|
||||||
// schematic = SchematicHandler.manager.getSchematic(file);
|
|
||||||
// if (schematic == null) {
|
|
||||||
// sendMessage(plr, Captions.SCHEMATIC_INVALID, "non-existent");
|
|
||||||
// return false;
|
|
||||||
// }
|
|
||||||
// final int l1 = schematic.getSchematicDimension().getX();
|
|
||||||
// final int l2 = schematic.getSchematicDimension().getZ();
|
|
||||||
// final int length = MainUtil.getPlotWidth(loc.getWorld(), plot.id);
|
|
||||||
// if ((l1 < length) || (l2 < length)) {
|
|
||||||
// sendMessage(plr, Captions.SCHEMATIC_INVALID, String.format("Wrong size (x: %s, z: %d) vs %d ", l1, l2, length));
|
|
||||||
// break;
|
|
||||||
// }
|
|
||||||
// sendMessage(plr, Captions.SCHEMATIC_VALID);
|
|
||||||
// break;
|
|
||||||
// }
|
|
||||||
case "saveall":
|
case "saveall":
|
||||||
case "exportall": {
|
case "exportall": {
|
||||||
if (!(player instanceof ConsolePlayer)) {
|
if (!(player instanceof ConsolePlayer)) {
|
||||||
|
@ -321,7 +321,7 @@ public enum Captions {
|
|||||||
//<editor-fold desc="Schematic">
|
//<editor-fold desc="Schematic">
|
||||||
SCHEMATIC_TOO_LARGE("$2The plot is too large for this action!",
|
SCHEMATIC_TOO_LARGE("$2The plot is too large for this action!",
|
||||||
"Schematics"),
|
"Schematics"),
|
||||||
SCHEMATIC_MISSING_ARG("$2You need to specify an argument. Possible values: $1test <name>$2 , $1save$2 , $1paste $2, $1exportall$2, $1list", "Schematics"),
|
SCHEMATIC_MISSING_ARG("$2You need to specify an argument. Possible values: $1save$2, $1paste $2, $1exportall$2, $1list", "Schematics"),
|
||||||
|
|
||||||
SCHEMATIC_INVALID("$2That is not a valid schematic. Reason: $2%s", "Schematics"),
|
SCHEMATIC_INVALID("$2That is not a valid schematic. Reason: $2%s", "Schematics"),
|
||||||
SCHEMATIC_VALID("$2That is a valid schematic", "Schematics"),
|
SCHEMATIC_VALID("$2That is a valid schematic", "Schematics"),
|
||||||
|
@ -130,8 +130,7 @@ setup:
|
|||||||
setup backn$2 - $1/plot setup cancel
|
setup backn$2 - $1/plot setup cancel
|
||||||
setup_invalid_generator: '$2Ungültiger Generarator. Mögliche Optionen: %s'
|
setup_invalid_generator: '$2Ungültiger Generarator. Mögliche Optionen: %s'
|
||||||
schematics:
|
schematics:
|
||||||
schematic_missing_arg: '$2Du musst einen Wert angeben. Gültige Werte: $1test <name>$2
|
schematic_missing_arg: '$2Du musst einen Wert angeben. Gültige Werte: $1save$2, $1paste $2, $1exportall'
|
||||||
, $1save$2 , $1paste $2, $1exportall'
|
|
||||||
schematic_invalid: '$2Diese Schematic ist ungültig: $2%s'
|
schematic_invalid: '$2Diese Schematic ist ungültig: $2%s'
|
||||||
schematic_valid: $2Diese Schematic ist gültig.
|
schematic_valid: $2Diese Schematic ist gültig.
|
||||||
schematic_paste_failed: $2Einfügen der Schematic fehlgeschlagen.
|
schematic_paste_failed: $2Einfügen der Schematic fehlgeschlagen.
|
||||||
|
@ -145,7 +145,7 @@ setup:
|
|||||||
setup_invalid_generator: '$2Generador inválido. Opciones posibles: %s'
|
setup_invalid_generator: '$2Generador inválido. Opciones posibles: %s'
|
||||||
schematics:
|
schematics:
|
||||||
schematic_missing_arg: '$2Necesitas especificar un argumento. Valores posibles:
|
schematic_missing_arg: '$2Necesitas especificar un argumento. Valores posibles:
|
||||||
$1test <name>$2 , $1save$2 , $1paste $2, $1exportall'
|
$1save$2, $1paste $2, $1exportall'
|
||||||
schematic_invalid: '$2Este no es un schematic valido. Razon: $2%s'
|
schematic_invalid: '$2Este no es un schematic valido. Razon: $2%s'
|
||||||
schematic_valid: $2Este es un schematic valido.
|
schematic_valid: $2Este es un schematic valido.
|
||||||
schematic_paste_failed: $2Fallo al pegar el schematic.
|
schematic_paste_failed: $2Fallo al pegar el schematic.
|
||||||
|
@ -151,8 +151,7 @@ setup:
|
|||||||
cancel
|
cancel
|
||||||
setup_invalid_generator: '$2올바르지 않은 생성기 입니다. 가능한 옵션: %s'
|
setup_invalid_generator: '$2올바르지 않은 생성기 입니다. 가능한 옵션: %s'
|
||||||
schematics:
|
schematics:
|
||||||
schematic_missing_arg: '$2당신은 인수를 지정해야 합니다. 가능한 값: $1test <name>$2 , $1save$2 ,
|
schematic_missing_arg: '$2당신은 인수를 지정해야 합니다. 가능한 값: $1save$2, $1paste $2, $1exportall'
|
||||||
$1paste $2, $1exportall'
|
|
||||||
schematic_invalid: '$2이것은 올바르지 않은 schematic파일 입니다. 사유: $2%s'
|
schematic_invalid: '$2이것은 올바르지 않은 schematic파일 입니다. 사유: $2%s'
|
||||||
schematic_valid: $2이것은 올바른 schematic파일 입니다
|
schematic_valid: $2이것은 올바른 schematic파일 입니다
|
||||||
schematic_paste_failed: $2schematic 적용에 실패하엿습니다
|
schematic_paste_failed: $2schematic 적용에 실패하엿습니다
|
||||||
|
Loading…
Reference in New Issue
Block a user