And declare it as a set

This commit is contained in:
LeoDog896 2021-02-09 18:27:41 -05:00
parent c4e6d18ee4
commit 2330cb7037

View File

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