diff --git a/src/main/java/com/sk89q/bukkit/util/CommandRegistration.java b/src/main/java/com/sk89q/bukkit/util/CommandRegistration.java index a7d68a1d9..89357f51f 100644 --- a/src/main/java/com/sk89q/bukkit/util/CommandRegistration.java +++ b/src/main/java/com/sk89q/bukkit/util/CommandRegistration.java @@ -57,7 +57,7 @@ public class CommandRegistration { } for (Command command : registered) { commandMap.register(plugin.getDescription().getName(), - new DynamicPluginCommand(command.aliases(), command.desc(), command.usage(), executor)); + new DynamicPluginCommand(command.aliases(), command.desc(), "/" + command.aliases()[0] + " " + command.usage(), executor)); } return true; } diff --git a/src/main/java/com/sk89q/util/yaml/YAMLProcessor.java b/src/main/java/com/sk89q/util/yaml/YAMLProcessor.java index e146d8025..d2a2d3ae8 100644 --- a/src/main/java/com/sk89q/util/yaml/YAMLProcessor.java +++ b/src/main/java/com/sk89q/util/yaml/YAMLProcessor.java @@ -218,6 +218,7 @@ public class YAMLProcessor extends YAMLNode { return new YAMLNode(new HashMap(), writeDefaults); } + // This will be included in snakeyaml 1.10, but until then we have to do it manually. private static class FancyDumperOptions extends DumperOptions { @Override public DumperOptions.ScalarStyle calculateScalarStyle(ScalarAnalysis analysis,