mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-04 14:12:20 -07:00
[Bleeding] Add 1.7 setworldspawn and setidletimeout commands. Addresses BUKKIT-4932
By: t00thpick1 <t00thpick1dirko@gmail.com>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user