Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Commands: fix cooldown message for /chatsettings
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFaser committed Nov 5, 2023
1 parent f37bab8 commit 48bf7db
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,15 @@ public boolean onCommand(@NotNull CommandSender commandSender, @NotNull Command
return true;
}

if (cmdSettings.isHaveCooldown()) {
cmdSettings.getFPlayer().sendCDMessage(alias);
return true;
}

FPlayer fPlayer = cmdSettings.getFPlayer();

if (args.length == 1 && args[0].equals("save")) {

if (cmdSettings.isHaveCooldown()) {
cmdSettings.getFPlayer().sendCDMessage(alias);
return true;
}

FlectoneChat.getDatabase().execute(() ->
FlectoneChat.getDatabase().updateFPlayer("settings", fPlayer));

Expand Down

0 comments on commit 48bf7db

Please sign in to comment.