mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-03 11:06:08 +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()) {
|
if (name == null || !validUserPattern.matcher(name).matches()) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
org.bukkit.OfflinePlayer offlinePlayer = Bukkit.getOfflinePlayer(name);
|
org.bukkit.OfflinePlayer offlinePlayer = ess.getServer().getOfflinePlayer(name);
|
||||||
if (offlinePlayer == null) {
|
if (offlinePlayer == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue