Class CmdNmsProviders

java.lang.Object
com.kamikazejam.kamicommon.command.KamiCommand
com.kamikazejam.kamicommon.command.impl.kc.CmdNmsProviders
All Implemented Interfaces:
Active, PluginIdentifiableCommand

public class CmdNmsProviders extends KamiCommand
Resolves every NMS provider and reports which implementation this server got.

/kc nmstest exercises the providers but needs a player, so it cannot be used to check a server version without someone logging in. This runs from the console, which is what makes the version matrix checkable: every dispatch ladder is evaluated, every provider is constructed, and the class that comes back is printed by name.

It is aimed at one failure in particular. Each versions/* module targets the JVM its own Minecraft version required, so a ladder that sends an old server to a module built for a newer one throws UnsupportedClassVersionError the moment that provider is touched. Before this existed, the only way to find that was to boot the server and wait for something to use the provider. Here every provider is touched on purpose, and the failure is reported against the name of the one that broke rather than surfacing later from unrelated code.

  • Constructor Details

    • CmdNmsProviders

      public CmdNmsProviders()
  • Method Details