diff --git a/SchematicSystem/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/DownloadCommand.java b/SchematicSystem/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/DownloadCommand.java index ff797b67..b62c5c50 100644 --- a/SchematicSystem/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/DownloadCommand.java +++ b/SchematicSystem/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/DownloadCommand.java @@ -35,10 +35,10 @@ public class DownloadCommand extends SWCommand { @Register(help = true) public void genericCommand(Player player, String... args) { SteamwarUser user = SteamwarUser.get(player.getUniqueId()); - SchematicNode copyNode = SchematicNode.getSchematicNode(user.getId(), "//copy", 0); + SchematicNode copyNode = SchematicNode.getSchematicNode(user.getId(), "//copy", null); boolean newSchem = false; - if(copyNode == null) { - copyNode = SchematicNode.createSchematicNode(user.getId(), "//copy", 0, SchematicType.Normal.toDB(), ""); + if (copyNode == null) { + copyNode = SchematicNode.createSchematicNode(user.getId(), "//copy", null, SchematicType.Normal.toDB(), ""); newSchem = true; } @@ -46,13 +46,13 @@ public class DownloadCommand extends SWCommand { new SchematicData(copyNode).saveFromPlayer(player); } catch (IOException e) { SchematicSystem.MESSAGE.send("DOWNLOAD_ERROR", player); - if(newSchem) { + if (newSchem) { copyNode.delete(); } throw new SecurityException(e); } catch (NoClipboardException e) { SchematicSystem.MESSAGE.send("COMMAND_SAVE_CLIPBOARD_EMPTY", player); - if(newSchem) { + if (newSchem) { copyNode.delete(); } return;