No need to check if player is null

This commit is contained in:
extendedclip committed 2018-06-14 14:21:54 -04:00
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) {