A few fixes, whoops.

This commit is contained in:
Richard
2015-11-28 21:52:34 -02:00
parent 480bba958a
commit 561a620bdc
6 changed files with 10 additions and 27 deletions
@@ -44,13 +44,13 @@ public class ExprHeightOfSchematic extends SimpleExpression<Integer> {
@Override
public String toString(@Nullable Event e, boolean arg1) {
return "the height of the schematic " + schematic.toString(e, false);
return "the height of the schematic " + schematic.toString(e, false) + " in the folder " + new String(folder.getSingle(e) != null ? folder.toString(e, false) : "plugins/WorldEdit/schematics");
}
@Override
@Nullable
protected Integer[] get(Event e) {
String f = (folder.getSingle(e) != null) ? folder.getSingle(e) : "plugins/WorldEdit/";
String f = (folder.getSingle(e) != null) ? folder.getSingle(e) : "plugins/WorldEdit/schematics/";
String schem = schematic.getSingle(e);
File schemFile = new File((f.endsWith("/")) ? f : f + "/" + new String(schem.endsWith(".schematic") ? schem : schem + ".schematic"));
Integer h = null;
@@ -44,13 +44,13 @@ public class ExprLengthOfSchematic extends SimpleExpression<Integer> {
@Override
public String toString(@Nullable Event e, boolean arg1) {
return "the length of the schematic " + schematic.toString(e, false);
return "the length of the schematic " + schematic.toString(e, false) + " in the folder " + new String(folder.getSingle(e) != null ? folder.toString(e, false) : "plugins/WorldEdit/schematics");
}
@Override
@Nullable
protected Integer[] get(Event e) {
String f = (folder.getSingle(e) != null) ? folder.getSingle(e) : "plugins/WorldEdit/";
String f = (folder.getSingle(e) != null) ? folder.getSingle(e) : "plugins/WorldEdit/schematics/";
String schem = schematic.getSingle(e);
File schemFile = new File((f.endsWith("/")) ? f : f + "/" + new String(schem.endsWith(".schematic") ? schem : schem + ".schematic"));
Integer l = null;
@@ -44,13 +44,13 @@ public class ExprVolumeOfSchematic extends SimpleExpression<Integer> {
@Override
public String toString(@Nullable Event e, boolean arg1) {
return "the volume of the schematic " + schematic.toString(e, false);
return "the volume of the schematic " + schematic.toString(e, false) + " in the folder " + new String(folder.getSingle(e) != null ? folder.toString(e, false) : "plugins/WorldEdit/schematics");
}
@Override
@Nullable
protected Integer[] get(Event e) {
String f = (folder.getSingle(e) != null) ? folder.getSingle(e) : "plugins/WorldEdit/";
String f = (folder.getSingle(e) != null) ? folder.getSingle(e) : "plugins/WorldEdit/schematics/";
String schem = schematic.getSingle(e);
File schemFile = new File((f.endsWith("/")) ? f : f + "/" + new String(schem.endsWith(".schematic") ? schem : schem + ".schematic"));
Integer w = 0;
@@ -44,13 +44,13 @@ public class ExprWidthOfSchematic extends SimpleExpression<Integer> {
@Override
public String toString(@Nullable Event e, boolean arg1) {
return "the width of the schematic " + schematic.toString(e, false);
return "the width of the schematic " + schematic.toString(e, false) + " in the folder " + new String(folder.getSingle(e) != null ? folder.toString(e, false) : "plugins/WorldEdit/schematics");
}
@Override
@Nullable
protected Integer[] get(Event e) {
String f = (folder.getSingle(e) != null) ? folder.getSingle(e) : "plugins/WorldEdit/";
String f = (folder.getSingle(e) != null) ? folder.getSingle(e) : "plugins/WorldEdit/schematics/";
String schem = schematic.getSingle(e);
File schemFile = new File((f.endsWith("/")) ? f : f + "/" + new String(schem.endsWith(".schematic") ? schem : schem + ".schematic"));
Integer w = null;