Enum Class ServerPlatform

java.lang.Object
java.lang.Enum<ServerPlatform>
ch.njol.skript.ServerPlatform
All Implemented Interfaces:
Serializable, Comparable<ServerPlatform>, Constable

public enum ServerPlatform extends Enum<ServerPlatform>
Represents all server platforms that Skript runs on. Only some of the platforms are "officially" supported, though.
  • Enum Constant Details

    • BUKKIT_UNKNOWN

      public static final ServerPlatform BUKKIT_UNKNOWN
      Unknown Bukkit revision. This is probably a bad thing...
    • BUKKIT_CRAFTBUKKIT

      public static final ServerPlatform BUKKIT_CRAFTBUKKIT
      CraftBukkit, but not Spigot or Paper.
    • BUKKIT_SPIGOT

      public static final ServerPlatform BUKKIT_SPIGOT
      Spigot, with its Bukkit API extensions. Officially supported.
    • BUKKIT_PAPER

      public static final ServerPlatform BUKKIT_PAPER
      Paper Minecraft server, which is a Spigot fork with additional features. Officially supported.
    • BUKKIT_GLOWSTONE

      public static final ServerPlatform BUKKIT_GLOWSTONE
      Glowstone (or similar) fully open source Minecraft server, which supports Spigot API.
    • SPONGE

      public static final ServerPlatform SPONGE
      Doesn't work at all currently.
  • Field Details

    • name

      public String name
    • works

      public boolean works
    • supported

      public boolean supported
  • Method Details

    • values

      public static ServerPlatform[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ServerPlatform valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null