Skip to content

Commit

Permalink
Fix addons command
Browse files Browse the repository at this point in the history
  • Loading branch information
NichtStudioCode committed Dec 7, 2024
1 parent ab32552 commit e64c03d
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import xyz.xenondevs.commons.guava.component2
import xyz.xenondevs.commons.guava.component3
import xyz.xenondevs.commons.guava.iterator
import xyz.xenondevs.nova.LOGGER
import xyz.xenondevs.nova.addon.Addon
import xyz.xenondevs.nova.addon.AddonBootstrapper
import xyz.xenondevs.nova.command.Command
import xyz.xenondevs.nova.command.argument.NetworkTypeArgumentType
import xyz.xenondevs.nova.command.argument.NovaBlockArgumentType
Expand Down Expand Up @@ -891,10 +891,8 @@ internal object NovaCommand : Command() {
}

private fun sendAddons(ctx: CommandContext<CommandSourceStack>) {
val addons = Bukkit.getPluginManager().plugins
.filter { it is Addon }

val builder = Component.text()
val addons = AddonBootstrapper.addons
builder.append(Component.translatable("command.nova.addons.header", Component.text(addons.size)))
for ((i, addon) in addons.withIndex()) {
val meta = addon.pluginMeta
Expand Down

0 comments on commit e64c03d

Please sign in to comment.