From 81919478fc2a4bdc9df7bcd65336a19bec33026d Mon Sep 17 00:00:00 2001 From: t00thpick1 Date: Tue, 7 Jan 2014 01:33:16 -0500 Subject: [PATCH] [Bleeding] Implement setIdleTimeout and getIdleTimeout. Addresses BUKKIT-4932. --- src/main/java/org/bukkit/craftbukkit/CraftServer.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 2653710313..f33681c5ca 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -1452,4 +1452,12 @@ public final class CraftServer implements Server { return new CraftIconCache("data:image/png;base64," + bytebuf1.toString(Charsets.UTF_8)); } + + public void setIdleTimeout(int threshold) { + console.d(threshold); // Should be setIdleTimeout + } + + public int getIdleTimeout() { + return console.aq(); // Should be getIdleTimeout + } }