No need to check if player is null
This commit is contained in:
1 parent
b0f005052a
commit
fde0c0b33f
1 file changed
+1
-1
@@ -105,7 +105,7 @@ public class PlayerExpansion extends PlaceholderExpansion {
|
||||
if (perm.isEmpty()) {
|
||||
return "";
|
||||
}
|
||||
return p == null ? "" : p.hasPermission(perm) ? PlaceholderAPIPlugin.booleanTrue() : PlaceholderAPIPlugin.booleanFalse();
|
||||
return p.hasPermission(perm) ? PlaceholderAPIPlugin.booleanTrue() : PlaceholderAPIPlugin.booleanFalse();
|
||||
}
|
||||
|
||||
switch (identifier) {
|
||||
|
||||
Reference in new issue
Block a user