2010-12-21 15:32:27 +00:00
|
|
|
|
|
|
|
package org.bukkit;
|
|
|
|
|
2010-12-24 16:41:51 +00:00
|
|
|
import org.bukkit.plugin.PluginManager;
|
|
|
|
|
2010-12-21 15:32:27 +00:00
|
|
|
/**
|
|
|
|
* Represents a server implementation
|
|
|
|
*/
|
|
|
|
public interface Server {
|
|
|
|
/**
|
|
|
|
* Gets the name of this server implementation
|
|
|
|
*
|
|
|
|
* @return name of this server implementation
|
|
|
|
*/
|
|
|
|
public String getName();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the version string of this server implementation.
|
|
|
|
*
|
|
|
|
* @return version of this server implementation
|
|
|
|
*/
|
|
|
|
public String getVersion();
|
2010-12-22 15:21:16 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets a list of all currently logged in players
|
|
|
|
*
|
|
|
|
* @return An array of Players that are currently online
|
|
|
|
*/
|
|
|
|
public Player[] getOnlinePlayers();
|
2010-12-24 16:41:51 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the PluginManager for interfacing with plugins
|
|
|
|
*
|
|
|
|
* @return PluginManager for this Server instance
|
|
|
|
*/
|
|
|
|
public PluginManager getPluginManager();
|
2010-12-27 02:11:52 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets a list of all worlds on this server
|
|
|
|
*
|
|
|
|
* @return An array of worlds
|
|
|
|
*/
|
|
|
|
public World[] getWorlds();
|
2010-12-21 15:32:27 +00:00
|
|
|
}
|