Skip to content

TabCompleter failing for /vs option set sound #110

@FrancescoMaca

Description

@FrancescoMaca

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Add the plugin to the plugins/ folder
  2. Connect to your server
  3. Open chat and type vs option set sound
  4. Pressing space will trigger the TabCompleter which throws the exceptions below.

Expected behavior
It should display the list of sounds to play.

Screenshots
Stack Trace:

2025-06-06T00:59:35.604232818Z [00:59:35 ERROR]: Exception when FrankyTheTuna attempted to tab complete option set sound 
2025-06-06T00:59:35.604246483Z org.bukkit.command.CommandException: Unhandled exception during tab completion for command '/vs option set sound ' in plugin VoidSpawn v1.22.0
2025-06-06T00:59:35.604249681Z 	at org.bukkit.command.PluginCommand.tabComplete(PluginCommand.java:150) ~[paper-api-1.21.4-R0.1-SNAPSHOT.jar:?]
2025-06-06T00:59:35.604252596Z 	at org.bukkit.command.Command.tabComplete(Command.java:101) ~[paper-api-1.21.4-R0.1-SNAPSHOT.jar:?]
2025-06-06T00:59:35.604255040Z 	at io.papermc.paper.command.brigadier.bukkit.BukkitCommandNode$BukkitBrigSuggestionProvider.getSuggestions(BukkitCommandNode.java:108) ~[paper-1.21.4.jar:1.21.4-231-09e9afd]
2025-06-06T00:59:35.604294535Z Caused by: java.lang.NoClassDefFoundError: org/bukkit/registry/RegistryAware
2025-06-06T00:59:35.604295977Z 	at VoidSpawn.jar/com.endercrest.voidspawn.options.SoundOption.getOptions(SoundOption.java:35) ~[VoidSpawn.jar:?]
2025-06-06T00:59:35.604297440Z 	at VoidSpawn.jar/com.endercrest.voidspawn.commands.OptionCommand.getTabCompletion(OptionCommand.java:116) ~[VoidSpawn.jar:?]
2025-06-06T00:59:35.604298963Z 	at VoidSpawn.jar/com.endercrest.voidspawn.commands.VoidSpawnTabCompleter.onTabComplete(VoidSpawnTabCompleter.java:47) ~[VoidSpawn.jar:?]
2025-06-06T00:59:35.604302770Z 	at org.bukkit.command.PluginCommand.tabComplete(PluginCommand.java:138) ~[paper-api-1.21.4-R0.1-SNAPSHOT.jar:?]
2025-06-06T00:59:35.604304353Z 	... 21 more```

**VoidSpawn Version:** 1.22.0
**MC Version:** `1.21.4`
This server is running Paper version 1.21.4-231-ver/1.21.4@09e9afd (2025-05-19T17:59:36Z) (Implementing API version 1.21.4-R0.1-SNAPSHOT)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions