Attempt to fix duplicate command names

This commit is contained in:
Draycia committed 2020-09-06 00:48:09 -07:00
1 parent ed3a41bcfa
commit c8beb402a3
16 files changed
+61

No files matched your search

@@ -9,6 +9,7 @@ import net.draycia.carbon.channels.ChatChannel;
import net.draycia.carbon.storage.ChatUser;
import net.draycia.carbon.storage.CommandSettings;
import net.draycia.carbon.util.CarbonUtils;
import net.draycia.carbon.util.CommandUtils;
import net.kyori.adventure.text.Component;
import org.bukkit.command.CommandSender;
@@ -25,6 +26,8 @@ public class SudoChannelCommand {
return;
}
CommandUtils.handleDuplicateCommands(commandSettings);
LinkedHashMap<String, Argument> setOtherChannelArguments = new LinkedHashMap<>();
setOtherChannelArguments.put("player", CarbonUtils.onlineChatUserArgument());
setOtherChannelArguments.put("channel", CarbonUtils.channelArgument());