Changed deprecations

This commit is contained in:
Auxilor
2023-01-27 12:52:55 +00:00
parent 25c087592d
commit b035fa8940
3 changed files with 2 additions and 3 deletions

View File

@@ -303,6 +303,7 @@ public final class PlaceholderManager {
for (InjectablePlaceholder injection : context.getPlaceholderInjections()) {
// Do I know this is a bad way of doing this? Yes.
// I know it's deprecated, but it's fast.
if (injection instanceof StaticPlaceholder placeholder) {
processed = processed.replace("%" + placeholder.getIdentifier() + "%", placeholder.getValue());
} else if (injection instanceof PlayerStaticPlaceholder placeholder && player != null) {

View File

@@ -23,9 +23,7 @@ public sealed interface Placeholder permits PlayerPlaceholder, PlayerlessPlaceho
* Get the identifier for the placeholder.
*
* @return The identifier.
* @deprecated Placeholders can have dynamic patterns now.
*/
@Deprecated(since = "6.50.0")
@NotNull
String getIdentifier();