mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-09 09:57:45 +01:00
And declare it as a set
This commit is contained in:
parent
c4e6d18ee4
commit
2330cb7037
@ -96,8 +96,8 @@ public class CommandDispatcher {
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public Collection<Command> getCommands() {
|
||||
return Collections.unmodifiableCollection(commands);
|
||||
public Set<Command> getCommands() {
|
||||
return Collections.unmodifiableSet(commands);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user