Skip to content

Commit

Permalink
feat: improve dump command
Browse files Browse the repository at this point in the history
  • Loading branch information
Skienex committed Apr 24, 2024
1 parent e643b4d commit 3986468
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,25 +112,25 @@ private void dumpSubcommand(CommandContext<CommandSender> context) {
case ITEMS -> {
sender.sendMessage(Component.text("Dumping items:", StandaloneLiquip.COLOR_INFO));
for (final Item item : this.api.getItemRegistry()) {
sender.sendMessage(Component.text(item.key().asString()));
sender.sendMessage(Component.text("- " + item.key().asString()));
}
}
case FEATURES -> {
sender.sendMessage(Component.text("Dumping features:", StandaloneLiquip.COLOR_INFO));
for (final Feature feature : this.api.getFeatureRegistry()) {
sender.sendMessage(Component.text(feature.key().asString()));
sender.sendMessage(Component.text("- " + feature.key().asString()));
}
}
case TAGGED_FEATURES -> {
sender.sendMessage(Component.text("Dumping tagged_features:", StandaloneLiquip.COLOR_INFO));
for (final TaggedFeature<?> taggedFeature : this.api.getTaggedFeatureRegistry()) {
sender.sendMessage(Component.text(taggedFeature.key().asString()));
sender.sendMessage(Component.text("- " + taggedFeature.key().asString()));
}
}
case ENCHANTMENTS -> {
sender.sendMessage(Component.text("Dumping enchantments:", StandaloneLiquip.COLOR_INFO));
for (final Enchantment enchantment : this.api.getEnchantmentRegistry()) {
sender.sendMessage(Component.text(enchantment.key().asString()));
sender.sendMessage(Component.text("- " + enchantment.key().asString()));
}
}
}
Expand Down

0 comments on commit 3986468

Please sign in to comment.