This commit is contained in:
Auxilor
2023-04-27 18:55:03 +01:00
parent 3aefb0e481
commit ee3ecb643b
2 changed files with 1 additions and 7 deletions

View File

@@ -10,7 +10,7 @@ import java.util.function.Function;
import java.util.regex.Pattern;
/**
* A arguments that does not require a player and supports dynamic styles.
* A placeholder that does not require a player and supports dynamic styles.
*/
public final class DynamicPlaceholder implements RegistrablePlaceholder {
/**

View File

@@ -14,11 +14,6 @@ import java.util.regex.Pattern;
* A arguments that requires a player.
*/
public final class PlayerPlaceholder implements RegistrablePlaceholder {
/**
* The name of the arguments.
*/
private final String identifier;
/**
* The arguments pattern.
*/
@@ -45,7 +40,6 @@ public final class PlayerPlaceholder implements RegistrablePlaceholder {
@NotNull final String identifier,
@NotNull final Function<@NotNull Player, @Nullable String> function) {
this.plugin = plugin;
this.identifier = identifier;
this.pattern = Pattern.compile(identifier, Pattern.LITERAL);
this.function = function;
}