Register commands using paper APIs if available
A248 opened this issue ยท 1 comments
CommandMapUtil's reflection to the SimplePluginManager commandMap and SimpleCommandMap knownCommands fields should ideally be replaced by Paper-specific APIs, namely Server#getCommandMap and CommandMap#getKnownCommands, where these methods exist.
Doing so will improve the stability of spark in case of implementation changes in Bukkit-based server software.