Skip to content

Commit 2fee158

Browse files
committed
Fix some issue with the /glowstone command.
* Add missing description and usage for "/glowstone chunk". * Fix resource keys for "/glowstone property". * Fix "/glowstone" usage message. * Fix "/glowstone about" output.
1 parent cdf3bb8 commit 2fee158

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/main/java/net/glowstone/command/glowstone/GlowstoneCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ public boolean execute(CommandSender sender, String label, String[] args,
263263
private static void sendBullet(CommandSender sender,
264264
LocalizedStringImpl template, ResourceBundle resourceBundle, @NonNls String key,
265265
Object value) {
266-
template.send(sender, new LocalizedStringImpl(key, resourceBundle), value);
266+
template.send(sender, new LocalizedStringImpl(key, resourceBundle).get(), value);
267267
}
268268

269269
@Override

src/main/resources/commands.properties

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,17 +112,19 @@ glowstone.property=Property ''§b{0}§r'' = "§6{1}§r"
112112
glowstone.property.invalid=Unknown system property ''{0}''.
113113
glowstone.subcommand.about.description=Information about this server.
114114
glowstone.subcommand.about.usage=about
115+
glowstone.subcommand.chunk.description=Information about the current chunk.
116+
glowstone.subcommand.chunk.usage=chunk
115117
glowstone.subcommand.eval.description=Evaluate a reflection string.
116118
glowstone.subcommand.eval.usage=eval <eval>
117119
glowstone.subcommand.help.description=Shows the help screen
118120
glowstone.subcommand.help.usage=help
119-
glowstone.subcommand.properties.description=Lists or gets system properties
120-
glowstone.subcommand.properties.usage=property [name]
121+
glowstone.subcommand.property.description=Lists or gets system properties
122+
glowstone.subcommand.property.usage=property [name]
121123
glowstone.subcommand.vm.description=Lists JVM options
122124
glowstone.subcommand.vm.usage=vm
123125
glowstone.subcommand.world.description=Lists or teleports to worlds
124126
glowstone.subcommand.world.usage=world [teleportTo]
125-
glowstone.usage=/glowstone <about|eval|help|properties|vm|world>
127+
glowstone.usage=/glowstone <about|chunk|eval|help|property|vm|world>
126128
glowstone.vm=Glowstone JVM arguments ({0}):
127129
glowstone.vm.empty=There are no JVM arguments.
128130
glowstone.world.done=Teleported to world ''{0}''.

0 commit comments

Comments
 (0)