Interface Bridge


public interface Bridge
For bridging NMS to lib. For internal use.
  • Method Details

    • registerCommand

      void registerCommand(String alias, String permission)
      Regusters a command to the server
      Parameters:
      alias - The alias for the command (i.e. /example)
      permission - The permission required to execute the command (i.e. "EXAMPLE)
    • registerCommand

      void registerCommand(String alias, String permission, Args[] args)
      Regusters a command to the server
      Parameters:
      alias - The alias for the command (i.e. /example)
      permission - The permission required to execute the command (i.e. "EXAMPLE)
      args - Arguments for the command which may be required
    • getPlayerByName

      Optional<Player> getPlayerByName(String name)
      Get a Player by their username
      Parameters:
      name - The username of the player
      Returns:
      Player (or Optional.empty() if they are not found)
    • getServerVersion

      String getServerVersion()
      Version of Minecraft the server is running.
      Returns:
      Minecraft version
    • loadInternalPlugin

      void loadInternalPlugin()
      FOR INTERNAL USE ONLY Loads the internal plugins (id: gallium)
    • loadTestPlugin

      void loadTestPlugin()
      FOR INTERNAL USE ONLY Loads the test plugin