[Bleeding] Add 1.7 setworldspawn and setidletimeout commands. Addresses BUKKIT-4932

By: t00thpick1 <t00thpick1dirko@gmail.com>
This commit is contained in:
Bukkit/Spigot
2014-01-07 01:31:35 -05:00
parent 038c99a7f4
commit c0e5d3fbf0
5 changed files with 166 additions and 1 deletions

View File

@@ -666,7 +666,7 @@ public final class Bukkit {
}
/**
* @see Server#loadServerIcon(File)()
* @see Server#loadServerIcon(File)
*/
public static CachedServerIcon loadServerIcon(File file) throws Exception {
return server.loadServerIcon(file);
@@ -678,4 +678,18 @@ public final class Bukkit {
public static CachedServerIcon loadServerIcon(BufferedImage image) throws Exception {
return server.loadServerIcon(image);
}
/**
* @see Server#setIdleTimeout(int)
*/
public static void setIdleTimeout(int threshold) {
server.setIdleTimeout(threshold);
}
/**
* @see Server#getIdleTimeout()
*/
public static int getIdleTimeout() {
return server.getIdleTimeout();
}
}