Prevent error when player in papi is null

This commit is contained in:
ajgeiss0702
2021-01-21 15:57:37 +00:00
parent c9d7d32c4a
commit 73aa1d1ac6
@@ -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();