This commit is contained in:
Draycia committed 2020-09-09 20:45:20 -07:00
1 parent a47ff4e7b2
commit 29bdcc8061
48 files changed
+303 -307

No files matched your search

@@ -21,14 +21,14 @@ public class ClearChatCommand {
public ClearChatCommand(@NonNull CarbonChat carbonChat, @NonNull CommandSettings commandSettings) {
this.carbonChat = carbonChat;
if (!commandSettings.isEnabled()) {
if (!commandSettings.enabled()) {
return;
}
CommandUtils.handleDuplicateCommands(commandSettings);
new CommandAPICommand(commandSettings.getName())
.withAliases(commandSettings.getAliasesArray())
new CommandAPICommand(commandSettings.name())
.withAliases(commandSettings.aliases())
.withPermission(CommandPermission.fromString("carbonchat.clearchat.clear"))
.executes(this::execute)
.register();