From 2d7d0e3bf59404678cfa8768ea116e1306918b14 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Tue, 7 Jan 2014 01:33:16 -0500 Subject: [PATCH] [Bleeding] Implement setIdleTimeout and getIdleTimeout. Addresses BUKKIT-4932. By: t00thpick1 --- .../src/main/java/org/bukkit/craftbukkit/CraftServer.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 2653710313..f33681c5ca 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/paper-server/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 + } }