From 2330cb7037730d832c8672994ad601be554a0497 Mon Sep 17 00:00:00 2001 From: LeoDog896 Date: Tue, 9 Feb 2021 18:27:41 -0500 Subject: [PATCH] And declare it as a set --- .../minestom/server/command/builder/CommandDispatcher.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/minestom/server/command/builder/CommandDispatcher.java b/src/main/java/net/minestom/server/command/builder/CommandDispatcher.java index 2b7bd81fe..2eeb37e29 100644 --- a/src/main/java/net/minestom/server/command/builder/CommandDispatcher.java +++ b/src/main/java/net/minestom/server/command/builder/CommandDispatcher.java @@ -96,8 +96,8 @@ public class CommandDispatcher { } @NotNull - public Collection getCommands() { - return Collections.unmodifiableCollection(commands); + public Set getCommands() { + return Collections.unmodifiableSet(commands); } /**