geforkt von Mirrors/Paper
Added getBukkitVersion to Server
By: Nathan Adams <dinnerbone@dinnerbone.com>
Dieser Commit ist enthalten in:
Ursprung
b5b7edecd9
Commit
51b8a856bb
@ -51,7 +51,7 @@ public final class Bukkit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Bukkit.server = server;
|
Bukkit.server = server;
|
||||||
server.getLogger().info("This server is running " + getName() + " version " + getVersion());
|
server.getLogger().info("This server is running " + getName() + " version " + getVersion() + " (Implementing API version " + getBukkitVersion() + ")");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getName() {
|
public static String getName() {
|
||||||
@ -62,6 +62,10 @@ public final class Bukkit {
|
|||||||
return server.getVersion();
|
return server.getVersion();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static String getBukkitVersion() {
|
||||||
|
return server.getBukkitVersion();
|
||||||
|
}
|
||||||
|
|
||||||
public static Player[] getOnlinePlayers() {
|
public static Player[] getOnlinePlayers() {
|
||||||
return server.getOnlinePlayers();
|
return server.getOnlinePlayers();
|
||||||
}
|
}
|
||||||
|
@ -54,6 +54,13 @@ public interface Server {
|
|||||||
*/
|
*/
|
||||||
public String getVersion();
|
public String getVersion();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the Bukkit version that this server is running.
|
||||||
|
*
|
||||||
|
* @return Version of Bukkit
|
||||||
|
*/
|
||||||
|
public String getBukkitVersion();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets a list of all currently logged in players
|
* Gets a list of all currently logged in players
|
||||||
*
|
*
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren