diff options
author | Wesley Wolfe <weswolf@aol.com> | 2012-06-13 21:52:49 -0500 |
---|---|---|
committer | Wesley Wolfe <weswolf@aol.com> | 2012-06-13 23:00:46 -0500 |
commit | ed6d4c77598d385aae96bc2121726fce167c2688 (patch) | |
tree | 601a2e6174be549a6a797680e1ad5911a742a594 /src/main/java/org | |
parent | f58e514192f0b0d112dd58789a6533978c111c8d (diff) | |
download | craftbukkit-ed6d4c77598d385aae96bc2121726fce167c2688.tar craftbukkit-ed6d4c77598d385aae96bc2121726fce167c2688.tar.gz craftbukkit-ed6d4c77598d385aae96bc2121726fce167c2688.tar.lz craftbukkit-ed6d4c77598d385aae96bc2121726fce167c2688.tar.xz craftbukkit-ed6d4c77598d385aae96bc2121726fce167c2688.zip |
Support asynchronous events; Addresses BUKKIT-1212
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/CraftServer.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 00a82f2f..708daf73 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -1182,4 +1182,8 @@ public final class CraftServer implements Server { public int getWaterAnimalSpawnLimit() { return waterAnimalSpawn; } + + public boolean isPrimaryThread() { + return Thread.currentThread().equals(console.primaryThread); + } } |