p0t4t0sandwich / TaterLib

A cross API code library that allows developers to write code that works across multiple modding platforms, and across a wide range of Minecraft versions, all with one JAR file. If TaterLib runs on it, so can your plugin/mod.
GNU General Public License v3.0
8 stars 2 forks source link

Add Brigadier support to Sponge #26

Closed p0t4t0sandwich closed 8 months ago

p0t4t0sandwich commented 8 months ago

In a Forge env, depend on Forge, then use a helper class to register the command register event/ In a Vanilla env, cast to Sponge's underlying implementation and grab the necessary stuff from there

p0t4t0sandwich commented 8 months ago

Forgot to tag it in the commit, but I was able to use an access widener to grab the command dispatcher when the server is in it's starting phase. All that's left to do now is implement a workaround for SpongeForge. Considering the possibility of adding the brig event to the ServerStartingEvent mixin to see if it behaves as expected.