2013-07-02 03:21:57 +00:00
|
|
|
From 73f08d785fc177372cc0bf10bbb3b2c6e5db4230 Mon Sep 17 00:00:00 2001
|
2013-06-15 22:21:11 +00:00
|
|
|
From: md_5 <md_5@live.com.au>
|
|
|
|
Date: Sun, 16 Jun 2013 08:20:26 +1000
|
|
|
|
Subject: [PATCH] Do Not Search for Offline Players
|
|
|
|
|
|
|
|
By default we do not want to search as this leads to massive load times for plugins wanting to do mass data lookups.
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
2013-07-02 03:14:40 +00:00
|
|
|
index b49519a..bcbf8d7 100644
|
2013-06-15 22:21:11 +00:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
2013-06-22 04:07:01 +00:00
|
|
|
@@ -1088,7 +1088,7 @@ public final class CraftServer implements Server {
|
2013-06-15 22:21:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public OfflinePlayer getOfflinePlayer(String name) {
|
|
|
|
- return getOfflinePlayer(name, true);
|
|
|
|
+ return getOfflinePlayer(name, false); // Spigot
|
|
|
|
}
|
|
|
|
|
|
|
|
public OfflinePlayer getOfflinePlayer(String name, boolean search) {
|
|
|
|
--
|
|
|
|
1.8.1.2
|
|
|
|
|