Skip to content

Commit

Permalink
Removed delay subcommand.
Browse files Browse the repository at this point in the history
  • Loading branch information
imDMK committed Aug 29, 2023
1 parent 80d69d8 commit 8471918
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,10 @@
import com.github.imdmk.automessage.configuration.PluginConfiguration;
import com.github.imdmk.automessage.notification.NotificationSender;
import com.github.imdmk.automessage.notification.configuration.NotificationConfiguration;
import dev.rollczi.litecommands.argument.Arg;
import dev.rollczi.litecommands.argument.Name;
import dev.rollczi.litecommands.command.execute.Execute;
import dev.rollczi.litecommands.command.route.Route;
import org.bukkit.command.CommandSender;

import java.time.Duration;

@Route(name = "automessage")
public class AutoMessageCommand {

Expand Down Expand Up @@ -39,12 +35,4 @@ public void disable(CommandSender sender) {

this.notificationSender.sendNotification(sender, this.notificationConfiguration.autoMessagesDisabledNotification);
}

@Execute(route = "delay")
public void delay(CommandSender sender, @Arg @Name("delay") Duration delay) {
this.notificationConfiguration.autoMessagesDelay = delay;
this.pluginConfiguration.save();

this.notificationSender.sendNotification(sender, this.notificationConfiguration.autoMessagesChangedDelayNotification);
}
}

0 comments on commit 8471918

Please sign in to comment.