mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 05:06:44 +01:00
.
This commit is contained in:
parent
3938184655
commit
2d5b54ec0d
@ -21,7 +21,7 @@ public class Flag {
|
||||
*/
|
||||
public Flag(AbstractFlag key, String value) {
|
||||
char[] allowedCharacters = new char[] {
|
||||
'[', ']', '(', ')', ',', '_', '-', '.', ',', '?', '!', '&', '§'
|
||||
'[', ']', '(', ')', ',', '_', '-', '.', ',', '?', '!', '&', 'ァ'
|
||||
};
|
||||
String tempValue = value;
|
||||
for(char c : allowedCharacters)
|
||||
|
@ -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>()));
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user