mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-12-28 17:37:52 +01:00
Broadcast tab completing
This commit is contained in:
parent
8929dd48e6
commit
8c81873f92
@ -23,6 +23,14 @@ public interface GameCommandArguments {
|
||||
|
||||
<T> T get(String label, Class<T> type);
|
||||
|
||||
default boolean has(String label) {
|
||||
try {
|
||||
return get(label, Object.class) != null;
|
||||
} catch (Throwable ignored) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
default String getString(String label) {
|
||||
return get(label, String.class);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user