Add limited support for completions, add .editorconfig and reformat.
This commit is contained in:
parent
10aba61110
commit
762bdb7ff4
22 changed files with 676 additions and 203 deletions
|
|
@ -70,8 +70,7 @@ public class CommandContext<C extends CommandSender> {
|
|||
public <T> Optional<T> get(@Nonnull final String key) {
|
||||
final Object value = this.internalStorage.get(key);
|
||||
if (value != null) {
|
||||
@SuppressWarnings("ALL")
|
||||
final T castedValue = (T) value;
|
||||
@SuppressWarnings("ALL") final T castedValue = (T) value;
|
||||
return Optional.of(castedValue);
|
||||
} else {
|
||||
return Optional.empty();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue