@ThreadSafe public final class Trident extends Object
Server
Modifier and Type | Method and Description |
---|---|
static Config |
config()
The server configuration file
|
static Console |
console()
Obtains access to the server console
|
static Path |
fileContainer()
Returns the server's working directory, with the file separator appended
|
static Class<?> |
findCaller(int index) |
static PingInfo |
info()
The information displayed on the client server list when pinged
|
static Server |
instance()
Gets the server singleton that is currently running
|
static InetAddress |
ip()
Obtains the IP of the server
|
static boolean |
isTrident() |
static int |
port()
The port which the server connection has been opened on
|
static Server |
server()
The singleton instance of the server
|
static void |
setServer(Server s)
Do not call
|
static void |
shutdown()
Stops the server
|
static String |
version()
Obtains the server release version
|
public static Server instance()
@InternalUseOnly public static void setServer(Server s)
Will throw an exception if you are not calling from a trusted source
s
- the server to set@InternalUseOnly public static boolean isTrident()
@InternalUseOnly public static Class<?> findCaller(int index)
public static Path fileContainer()
public static PingInfo info()
public static int port()
public static void shutdown()
public static InetAddress ip()
public static String version()
Copyright © 2016. All rights reserved.