Package org.bukkit

Class Server.Spigot

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

public static class Server.Spigot
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    Spigot()  
  • Method Summary

    Modifier and Type Method Description
    void broadcast​(net.md_5.bungee.api.chat.BaseComponent component)
    Sends the component to the player
    void broadcast​(net.md_5.bungee.api.chat.BaseComponent... components)
    Sends an array of components as a single message to the player
    YamlConfiguration getConfig()  
    void restart()
    Restart the server.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getConfig

      public YamlConfiguration getConfig()
    • broadcast

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

      public void broadcast​(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

      public void restart()
      Restart the server. If the server administrator has not configured restarting, the server will stop.