mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-24 00:51:40 +01:00
Remove null check for user in BasicPlaceholderExpansion
https://github.com/BentoBoxWorld/BentoBox/issues/1654
This commit is contained in:
parent
1eee225def
commit
01d8075318
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user