mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 21:26:45 +01:00
.
This commit is contained in:
parent
3938184655
commit
2d5b54ec0d
@ -21,7 +21,7 @@ public class Flag {
|
|||||||
*/
|
*/
|
||||||
public Flag(AbstractFlag key, String value) {
|
public Flag(AbstractFlag key, String value) {
|
||||||
char[] allowedCharacters = new char[] {
|
char[] allowedCharacters = new char[] {
|
||||||
'[', ']', '(', ')', ',', '_', '-', '.', ',', '?', '!', '&', '§'
|
'[', ']', '(', ')', ',', '_', '-', '.', ',', '?', '!', '&', 'ァ'
|
||||||
};
|
};
|
||||||
String tempValue = value;
|
String tempValue = value;
|
||||||
for(char c : allowedCharacters)
|
for(char c : allowedCharacters)
|
||||||
|
@ -266,9 +266,6 @@ public class SchematicHandler {
|
|||||||
schematic.put("WEOffsetX", new IntTag("WEOffsetX", 0));
|
schematic.put("WEOffsetX", new IntTag("WEOffsetX", 0));
|
||||||
schematic.put("WEOffsetY", new IntTag("WEOffsetY", 0));
|
schematic.put("WEOffsetY", new IntTag("WEOffsetY", 0));
|
||||||
schematic.put("WEOffsetZ", new IntTag("WEOffsetZ", 0));
|
schematic.put("WEOffsetZ", new IntTag("WEOffsetZ", 0));
|
||||||
|
|
||||||
System.out.print("WHL "+width+" | "+height+ " | "+length);
|
|
||||||
|
|
||||||
byte[] blocks = new byte[width * height * length];
|
byte[] blocks = new byte[width * height * length];
|
||||||
byte[] addBlocks = null;
|
byte[] addBlocks = null;
|
||||||
byte[] blockData = new byte[width * height * length];
|
byte[] blockData = new byte[width * height * length];
|
||||||
@ -287,7 +284,6 @@ public class SchematicHandler {
|
|||||||
int id2 = block.getTypeId();
|
int id2 = block.getTypeId();
|
||||||
|
|
||||||
if (id2 > 255) {
|
if (id2 > 255) {
|
||||||
System.out.print("GREATER "+id2);
|
|
||||||
if (addBlocks == null) {
|
if (addBlocks == null) {
|
||||||
addBlocks = new byte[(blocks.length >> 1) + 1];
|
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("Blocks", new ByteArrayTag("Blocks", blocks));
|
||||||
schematic.put("Data", new ByteArrayTag("Data", blockData));
|
schematic.put("Data", new ByteArrayTag("Data", blockData));
|
||||||
schematic.put("Entities", new ListTag("Entities", CompoundTag.class, new ArrayList<Tag>()));
|
schematic.put("Entities", new ListTag("Entities", CompoundTag.class, new ArrayList<Tag>()));
|
||||||
|
@ -237,7 +237,7 @@ public class Schematic extends SubCommand {
|
|||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
PlayerFunctions.sendMessage(plr, "&6ID: "+plot.id);
|
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) {
|
if (!result) {
|
||||||
PlayerFunctions.sendMessage(plr, "&7 - Failed to save &c"+plot.id);
|
PlayerFunctions.sendMessage(plr, "&7 - Failed to save &c"+plot.id);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user