Remove null check for user in BasicPlaceholderExpansion

https://github.com/BentoBoxWorld/BentoBox/issues/1654
This commit is contained in:
tastybento 2021-01-21 15:30:08 -08:00
parent 1eee225def
commit 01d8075318

View File

@ -43,9 +43,8 @@ abstract class BasicPlaceholderExpansion extends PlaceholderExpansion {
@Override
public String onPlaceholderRequest(Player p, String placeholder) {
User user = User.getInstance(p);
if (user != null && placeholders.containsKey(placeholder)) {
return placeholders.get(placeholder).onReplace(user);
if (placeholders.containsKey(placeholder)) {
return placeholders.get(placeholder).onReplace(User.getInstance(p));
}
return null;
}