mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-22 08:02:31 +01:00
Adding has(Argument<T> argument) to Arguments.java
This commit is contained in:
parent
bd840a868f
commit
1ad1f06e33
@ -49,6 +49,10 @@ public final class Arguments {
|
||||
});
|
||||
}
|
||||
|
||||
public boolean has(@NotNull Argument<T> argument) {
|
||||
return args.containsKey(argument.getId());
|
||||
}
|
||||
|
||||
public boolean has(@NotNull String identifier) {
|
||||
return args.containsKey(identifier);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user