[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

@@ -782,4 +782,21 @@ public interface Server extends PluginMessageRecipient {
* ServerListPingEvent#setServerIcon(CachedServerIcon)}
*/
CachedServerIcon loadServerIcon(BufferedImage image) throws IllegalArgumentException, Exception;
/**
* Set the idle kick timeout. Any players idle for the specified amount of
* time will be automatically kicked.
* <p>
* A value of 0 will disable the idle kick timeout.
*
* @param threshold the idle timeout in minutes
*/
public void setIdleTimeout(int threshold);
/**
* Gets the idle kick timeout.
*
* @return the idle timeout in minutes
*/
public int getIdleTimeout();
}