Annotation Interface GameFeature


@Target(TYPE) @Retention(RUNTIME) public @interface GameFeature
Annotation used to indicate that a Minecraft feature handled by a ChatPluginManager is not available under certain circumstances.

It should be applied to managers' class declarations and checked through ChatPluginManager.checkAvailability(boolean).

Note: the check is processed on the plugin's server implementations only (Bukkit and Sponge).

  • Element Details

    • name

      String name
      Gets this feature's name.

      Example: "actionbar", "bossbar"...

      Returns:
      Feature's name
    • availableOnBukkit

      boolean availableOnBukkit
      Checks if this feature is available on Bukkit environments.
      Returns:
      Whether this feature is available on Bukkit
    • availableOnSponge

      boolean availableOnSponge
      Checks if this feature is available on Sponge environments.
      Returns:
      Whether this feature is available on Sponge
    • spigotRequired

      boolean spigotRequired
      Checks if Spigot is required to run this feature.

      Applies to Bukkit environments only.

      Returns:
      Whether Spigot is required to run this feature
    • minimumBukkitVersion

      VersionUtils.Version minimumBukkitVersion
      Gets the minimum Vanilla version required to run this feature on a Bukkit environment.
      Returns:
      Minimum Vanilla version required to run on Bukkit
    • minimumSpongeVersion

      VersionUtils.Version minimumSpongeVersion
      Gets the minimum Vanilla version required to run this feature on a Sponge environment.
      Returns:
      Minimum Vanilla version required to run on Sponge