mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-02 17:00:41 +01:00
Merge pull request #140 from MrBretze/patch-1
Adding has(Argument<T> argument) to Arguments.java
This commit is contained in:
commit
ff3888d972
@ -49,6 +49,10 @@ public final class Arguments {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean has(@NotNull Argument<?> argument) {
|
||||||
|
return args.containsKey(argument.getId());
|
||||||
|
}
|
||||||
|
|
||||||
public boolean has(@NotNull String identifier) {
|
public boolean has(@NotNull String identifier) {
|
||||||
return args.containsKey(identifier);
|
return args.containsKey(identifier);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user