diff options
author | t00thpick1 <t00thpick1dirko@gmail.com> | 2014-01-07 01:33:16 -0500 |
---|---|---|
committer | Nate Mortensen <nate.richard.mortensen@gmail.com> | 2014-01-14 17:38:07 -0700 |
commit | 81919478fc2a4bdc9df7bcd65336a19bec33026d (patch) | |
tree | e7a8d6add0cf100861897518e6466ada9439bb52 /src/main/java/org/bukkit | |
parent | fd65b29a0c6164d8bb798031a8d536750ee6e5ae (diff) | |
download | craftbukkit-81919478fc2a4bdc9df7bcd65336a19bec33026d.tar craftbukkit-81919478fc2a4bdc9df7bcd65336a19bec33026d.tar.gz craftbukkit-81919478fc2a4bdc9df7bcd65336a19bec33026d.tar.lz craftbukkit-81919478fc2a4bdc9df7bcd65336a19bec33026d.tar.xz craftbukkit-81919478fc2a4bdc9df7bcd65336a19bec33026d.zip |
[Bleeding] Implement setIdleTimeout and getIdleTimeout. Addresses BUKKIT-4932.
Diffstat (limited to 'src/main/java/org/bukkit')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/CraftServer.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 26537103..f33681c5 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 + } } |