mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-11-22 11:55:54 +01:00
Fix PlaceholderAPI expansion not handling unknown placeholder correctly
This commit is contained in:
parent
3ae2daf3c3
commit
a7c2283935
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user