mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-09 18:08:37 +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
|
@NotNull
|
||||||
public Collection<Command> getCommands() {
|
public Set<Command> getCommands() {
|
||||||
return Collections.unmodifiableCollection(commands);
|
return Collections.unmodifiableSet(commands);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user