Broadcast tab completing

This commit is contained in:
Vankka 2022-04-12 12:39:40 +03:00
parent 8929dd48e6
commit 8c81873f92
No known key found for this signature in database
GPG Key ID: 6E50CB7A29B96AD0

View File

@ -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);
}