From 8623dd0009ec4d2da403d2b42c32c24cc57ccdea Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Wed, 27 Mar 2019 15:38:21 +0100 Subject: [PATCH] Fixes #80 --- .../java/com/sk89q/worldedit/command/SchematicCommands.java | 3 ++- .../worldedit/extent/clipboard/io/BuiltInClipboardFormat.java | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java index 404ac187f..4b9ab8150 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java @@ -277,7 +277,8 @@ public class SchematicCommands extends MethodCommands { } } - @Command(aliases = {"save"}, usage = "[format] ", desc = "Save a schematic into your clipboard") + @Command( + aliases = {"save"}, usage = "[format] ", desc = "Save a schematic into your clipboard", help = "The default format for 1.13 is schem") @Deprecated @CommandPermissions({"worldedit.clipboard.save", "worldedit.schematic.save", "worldedit.schematic.save.other"}) public void save(final Player player, final LocalSession session, @Optional("schem") final String formatName, String filename, @Switch('g') boolean global) throws CommandException, WorldEditException { diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/BuiltInClipboardFormat.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/BuiltInClipboardFormat.java index fc167ac0e..0f4cd464f 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/BuiltInClipboardFormat.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/BuiltInClipboardFormat.java @@ -50,7 +50,7 @@ import com.sk89q.jnbt.Tag; */ public enum BuiltInClipboardFormat implements ClipboardFormat{ /** - * The Schematic format used by many software. + * The Schematic format used by MCEdit. */ @Deprecated MCEDIT_SCHEMATIC("mcedit", "mce", "schematic") { @@ -68,7 +68,7 @@ public enum BuiltInClipboardFormat implements ClipboardFormat{ @Override public ClipboardWriter getWriter(OutputStream outputStream) throws IOException { - throw new UnsupportedOperationException("No longer supported."); + throw new IOException("This format does not support saving, use `schem` as format"); } @Override