testserver/CraftBukkit-Patches/0033-Do-Not-Search-for-Offl...

24 lines
931 B
Diff
Raw Normal View History

2014-03-26 20:34:47 +00:00
From fbd77e9599476eb5e29bead4e0118c10e807344c Mon Sep 17 00:00:00 2001
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
2014-03-23 00:06:43 +00:00
index 7fdab7d..5db2f0a 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
2014-03-23 00:06:43 +00:00
@@ -1280,7 +1280,7 @@ public final class CraftServer implements Server {
}
public OfflinePlayer getOfflinePlayer(String name) {
- return getOfflinePlayer(name, true);
+ return getOfflinePlayer(name, false); // Spigot
}
public OfflinePlayer getOfflinePlayer(String name, boolean search) {
--
2014-03-23 00:06:43 +00:00
1.8.5.2.msysgit.0