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 Bukkit #39

Closed p0t4t0sandwich closed 8 months ago

p0t4t0sandwich commented 8 months ago
Bukkit.getScheduler().runTaskLater(plugin, () -> {
      DedicatedServer server = ((CraftServer) getServer()).getServer();
      CommandDispatcher<CommandSourceStack> dispatcher = server.resources.managers().commands.getDispatcher();
      # Fire Brigadier event
}, 1);