mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +00:00
progress
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user