Prevent error when player in papi is null
This commit is contained in:
@@ -123,6 +123,9 @@ public class Placeholders extends PlaceholderExpansion {
|
||||
//Bukkit.getLogger().info("itentifier: "+identifier);
|
||||
|
||||
|
||||
if(player == null) return "No player";
|
||||
|
||||
|
||||
String noc = "_nocache";
|
||||
if(identifier.length() > noc.length()) {
|
||||
int olen = identifier.length()-noc.length();
|
||||
|
||||
Reference in New Issue
Block a user