Changed deprecations
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user