Placeholders are no longer ignored when a player isn't in a guild

This commit is contained in:
Aria 2019-12-09 16:29:51 +01:00
parent 0ebd33c1c1
commit 7342f5420b

View File

@ -153,7 +153,7 @@ public class RPGPlaceholders extends PlaceholderExpansion /** implements Relatio
else if (identifier.startsWith("guild_")) {
String placeholder = identifier.substring(6);
PlayerData data = PlayerData.get(player);
if(data.getGuild() == null) return null;
if(data.getGuild() == null) return "";
if (placeholder.equalsIgnoreCase("name"))
return data.getGuild().getName();