A few documentation improvements.

This commit is contained in:
zml2008 2012-01-10 22:30:07 -08:00
parent 17cdbcac12
commit a6bba00f77
2 changed files with 2 additions and 1 deletions

View File

@ -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;
}

View File

@ -218,6 +218,7 @@ public class YAMLProcessor extends YAMLNode {
return new YAMLNode(new HashMap<String, Object>(), 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,