From 2d5b54ec0dea10fa33bf73fff9b6dbc2fe142b82 Mon Sep 17 00:00:00 2001 From: boy0001 Date: Sun, 26 Oct 2014 12:19:35 +1100 Subject: [PATCH] . --- PlotSquared/src/com/intellectualcrafters/plot/Flag.java | 2 +- .../com/intellectualcrafters/plot/SchematicHandler.java | 7 ------- .../com/intellectualcrafters/plot/commands/Schematic.java | 2 +- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/PlotSquared/src/com/intellectualcrafters/plot/Flag.java b/PlotSquared/src/com/intellectualcrafters/plot/Flag.java index 7ad06128a..bac20c5fa 100644 --- a/PlotSquared/src/com/intellectualcrafters/plot/Flag.java +++ b/PlotSquared/src/com/intellectualcrafters/plot/Flag.java @@ -21,7 +21,7 @@ public class Flag { */ public Flag(AbstractFlag key, String value) { char[] allowedCharacters = new char[] { - '[', ']', '(', ')', ',', '_', '-', '.', ',', '?', '!', '&', '§' + '[', ']', '(', ')', ',', '_', '-', '.', ',', '?', '!', '&', '§' }; String tempValue = value; for(char c : allowedCharacters) diff --git a/PlotSquared/src/com/intellectualcrafters/plot/SchematicHandler.java b/PlotSquared/src/com/intellectualcrafters/plot/SchematicHandler.java index dcdee26f5..8ae1202d1 100644 --- a/PlotSquared/src/com/intellectualcrafters/plot/SchematicHandler.java +++ b/PlotSquared/src/com/intellectualcrafters/plot/SchematicHandler.java @@ -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())); diff --git a/PlotSquared/src/com/intellectualcrafters/plot/commands/Schematic.java b/PlotSquared/src/com/intellectualcrafters/plot/commands/Schematic.java index ff625ddb5..ccb6fe837 100644 --- a/PlotSquared/src/com/intellectualcrafters/plot/commands/Schematic.java +++ b/PlotSquared/src/com/intellectualcrafters/plot/commands/Schematic.java @@ -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); }