This commit is contained in:
boy0001 2014-10-26 12:19:35 +11:00
parent 3938184655
commit 2d5b54ec0d
3 changed files with 2 additions and 9 deletions

View File

@ -21,7 +21,7 @@ public class Flag {
*/
public Flag(AbstractFlag key, String value) {
char[] allowedCharacters = new char[] {
'[', ']', '(', ')', ',', '_', '-', '.', ',', '?', '!', '&', '§'
'[', ']', '(', ')', ',', '_', '-', '.', ',', '?', '!', '&', ''
};
String tempValue = value;
for(char c : allowedCharacters)

View File

@ -266,9 +266,6 @@ public class SchematicHandler {
schematic.put("WEOffsetX", new IntTag("WEOffsetX", 0));
schematic.put("WEOffsetY", new IntTag("WEOffsetY", 0));
schematic.put("WEOffsetZ", new IntTag("WEOffsetZ", 0));
System.out.print("WHL "+width+" | "+height+ " | "+length);
byte[] blocks = new byte[width * height * length];
byte[] addBlocks = null;
byte[] blockData = new byte[width * height * length];
@ -287,7 +284,6 @@ public class SchematicHandler {
int id2 = block.getTypeId();
if (id2 > 255) {
System.out.print("GREATER "+id2);
if (addBlocks == null) {
addBlocks = new byte[(blocks.length >> 1) + 1];
}
@ -306,9 +302,6 @@ public class SchematicHandler {
}
}
}
System.out.print("COUNT "+count);
schematic.put("Blocks", new ByteArrayTag("Blocks", blocks));
schematic.put("Data", new ByteArrayTag("Data", blockData));
schematic.put("Entities", new ListTag("Entities", CompoundTag.class, new ArrayList<Tag>()));

View File

@ -237,7 +237,7 @@ public class Schematic extends SubCommand {
@Override
public void run() {
PlayerFunctions.sendMessage(plr, "&6ID: "+plot.id);
boolean result = SchematicHandler.save(sch, Settings.SCHEMATIC_SAVE_PATH+"/"+plot.id.x+","+plot.id.y+","+world+","+owner+".schematic");
boolean result = SchematicHandler.save(sch, Settings.SCHEMATIC_SAVE_PATH+"/"+plot.id.x+","+plot.id.y+","+world+","+owner.trim()+".schematic");
if (!result) {
PlayerFunctions.sendMessage(plr, "&7 - Failed to save &c"+plot.id);
}