Interface ServerTypePlugin

All Superinterfaces:
MOOCPlugin
All Known Implementing Classes:
ConvertBukkitServer, ConvertModdedServer, ConvertVanillaServer

public non-sealed interface ServerTypePlugin extends MOOCPlugin
A MOOCPlugin that applies only to a single ServerType.

Enablement requires an active conversion operation and an exact match between the context's server type and compatibleServerType().

  • Method Details

    • compatibleServerType

      ServerType compatibleServerType()
      Returns the single server type this plugin supports.
      Returns:
      the compatible ServerType
    • isEnabled

      default boolean isEnabled(PluginContext ctx)
      Returns true when a conversion is requested and the context's server type equals compatibleServerType().
      Specified by:
      isEnabled in interface MOOCPlugin
      Parameters:
      ctx - the shared conversion context
      Returns:
      true if this plugin should run; false otherwise