summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorNathan Adams <dinnerbone@dinnerbone.com>2011-10-31 04:01:56 +0000
committerNathan Adams <dinnerbone@dinnerbone.com>2011-10-31 04:02:30 +0000
commitfec8835d566c9c7e2333accbf3268dc7b6ed3818 (patch)
treedd2b22d47e8d4bb99257db33edf3116ad0eaea2e /src/main
parenta25ff645eb15d62445fa053e05165522577d4a57 (diff)
downloadbukkit-fec8835d566c9c7e2333accbf3268dc7b6ed3818.tar
bukkit-fec8835d566c9c7e2333accbf3268dc7b6ed3818.tar.gz
bukkit-fec8835d566c9c7e2333accbf3268dc7b6ed3818.tar.lz
bukkit-fec8835d566c9c7e2333accbf3268dc7b6ed3818.tar.xz
bukkit-fec8835d566c9c7e2333accbf3268dc7b6ed3818.zip
Added getBukkitVersion to Server
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/bukkit/Bukkit.java6
-rw-r--r--src/main/java/org/bukkit/Server.java7
2 files changed, 12 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/Bukkit.java b/src/main/java/org/bukkit/Bukkit.java
index c9fc8d7e..45728ccf 100644
--- a/src/main/java/org/bukkit/Bukkit.java
+++ b/src/main/java/org/bukkit/Bukkit.java
@@ -51,7 +51,7 @@ public final class Bukkit {
}
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() {
@@ -62,6 +62,10 @@ public final class Bukkit {
return server.getVersion();
}
+ public static String getBukkitVersion() {
+ return server.getBukkitVersion();
+ }
+
public static Player[] getOnlinePlayers() {
return server.getOnlinePlayers();
}
diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java
index ca71d8d4..3870bd80 100644
--- a/src/main/java/org/bukkit/Server.java
+++ b/src/main/java/org/bukkit/Server.java
@@ -53,6 +53,13 @@ public interface Server {
* @return version of this server implementation
*/
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