Cleanup
This commit is contained in:
@@ -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 {
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user