Package org.bukkit

Class Server.Spigot

java.lang.Object
org.bukkit.Server.Spigot
Enclosing interface:
Server

public static class Server.Spigot extends Object
  • Constructor Details

    • Spigot

      public Spigot()
  • Method Details

    • getConfig

      @Deprecated(since="1.21.4", forRemoval=true) @NotNull public YamlConfiguration getConfig()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Server config options may be renamed or removed without notice. Prefer using existing API wherever possible, rather than directly reading from a server config.
      Returns:
      The server's spigot config.
    • getBukkitConfig

      @Deprecated(since="1.21.4", forRemoval=true) @NotNull public YamlConfiguration getBukkitConfig()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Server config options may be renamed or removed without notice. Prefer using existing API wherever possible, rather than directly reading from a server config.
      Returns:
      The server's bukkit config.
    • getSpigotConfig

      @Deprecated(since="1.21.4", forRemoval=true) @NotNull public YamlConfiguration getSpigotConfig()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Server config options may be renamed or removed without notice. Prefer using existing API wherever possible, rather than directly reading from a server config.
      Returns:
      The server's spigot config.
    • getPaperConfig

      @Deprecated(since="1.21.4", forRemoval=true) @NotNull public YamlConfiguration getPaperConfig()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Server config options may be renamed or removed without notice. Prefer using existing API wherever possible, rather than directly reading from a server config.
      Returns:
      The server's paper config.
    • getDaydreamConfig

      @NotNull public YamlConfiguration getDaydreamConfig()
    • broadcast

      @Deprecated public void broadcast(@NotNull net.md_5.bungee.api.chat.BaseComponent component)
      Sends the component to the player
      Parameters:
      component - the components to send
    • broadcast

      @Deprecated public void broadcast(@NotNull net.md_5.bungee.api.chat.BaseComponent... components)
      Sends an array of components as a single message to the player
      Parameters:
      components - the components to send
    • restart

      @Deprecated(since="1.21.4", forRemoval=true) public void restart()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use Server.restart() instead.
      Restart the server. If the server administrator has not configured restarting, the server will stop.