Fix PlaceholderAPI expansion not handling unknown placeholder correctly

This commit is contained in:
Vankka 2022-05-05 17:44:16 +03:00
parent 3ae2daf3c3
commit a7c2283935
No known key found for this signature in database
GPG Key ID: 6E50CB7A29B96AD0

View File

@ -149,7 +149,8 @@ public class PlaceholderAPIIntegration extends PluginIntegration<BukkitDiscordSR
}
String placeholder = "%" + params + "%";
return discordSRV.placeholderService().replacePlaceholders(placeholder, context);
String result = discordSRV.placeholderService().replacePlaceholders(placeholder, context);
return placeholder.equals(result) ? null : result;
}
}
}