mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-24 09:02:00 +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
|
@Override
|
||||||
public String onPlaceholderRequest(Player p, String placeholder) {
|
public String onPlaceholderRequest(Player p, String placeholder) {
|
||||||
User user = User.getInstance(p);
|
if (placeholders.containsKey(placeholder)) {
|
||||||
if (user != null && placeholders.containsKey(placeholder)) {
|
return placeholders.get(placeholder).onReplace(User.getInstance(p));
|
||||||
return placeholders.get(placeholder).onReplace(user);
|
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user