mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
7406cbf2d1
By: md_5 <md_5@live.com.au>
23 lines
921 B
Diff
23 lines
921 B
Diff
From d7e7843516ef6d7256ec3ff874e3ede7c16922b3 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
|
|
index b49519a..bcbf8d7 100644
|
|
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
@@ -1088,7 +1088,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) {
|
|
--
|
|
1.8.1.2
|
|
|