mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-04-25 07:59:44 +00:00
Use Essentials server instance instead of static Bukkit reference
This commit is contained in:
parent
55f3a14343
commit
bc4737562d
1 changed files with 1 additions and 1 deletions
|
@ -233,7 +233,7 @@ public class UserMap extends CacheLoader<String, User> implements IConf {
|
|||
if (name == null || !validUserPattern.matcher(name).matches()) {
|
||||
return null;
|
||||
}
|
||||
org.bukkit.OfflinePlayer offlinePlayer = Bukkit.getOfflinePlayer(name);
|
||||
org.bukkit.OfflinePlayer offlinePlayer = ess.getServer().getOfflinePlayer(name);
|
||||
if (offlinePlayer == null) {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue