Skip to content

Commit

Permalink
Renamed UserTimeSaveTask to UserSpentTimeSaveTask.
Browse files Browse the repository at this point in the history
  • Loading branch information
imDMK committed Aug 11, 2023
1 parent ca60ccc commit 42d5a54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/github/imdmk/spenttime/SpentTime.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import com.github.imdmk.spenttime.user.repository.UserRepository;
import com.github.imdmk.spenttime.user.repository.impl.UserEmptyRepositoryImpl;
import com.github.imdmk.spenttime.user.repository.impl.UserRepositoryImpl;
import com.github.imdmk.spenttime.user.task.UserTimeSaveTask;
import com.github.imdmk.spenttime.user.task.UserSpentTimeSaveTask;
import com.github.imdmk.spenttime.util.DurationUtil;
import dev.rollczi.litecommands.LiteCommands;
import dev.rollczi.litecommands.bukkit.adventure.platform.LiteBukkitAdventurePlatformFactory;
Expand Down Expand Up @@ -110,7 +110,7 @@ public SpentTime(Plugin plugin) {

/* Tasks */
this.taskScheduler = new TaskSchedulerImpl(plugin, this.server);
this.taskScheduler.runTimerAsync(new UserTimeSaveTask(this.server, this.userRepository, this.userManager), DurationUtil.toTicks(Duration.ofMinutes(1)), DurationUtil.toTicks(this.pluginConfiguration.playerSpentTimeSaveDuration));
this.taskScheduler.runTimerAsync(new UserSpentTimeSaveTask(this.server, this.userRepository, this.userManager), DurationUtil.toTicks(Duration.ofMinutes(1)), DurationUtil.toTicks(this.pluginConfiguration.playerSpentTimeSaveDuration));

/* Guis */
this.topSpentTimeGui = new TopSpentTimeGui(this.server, this.pluginConfiguration.guiConfiguration, this.taskScheduler);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@

import java.util.Optional;

public class UserTimeSaveTask implements Runnable {
public class UserSpentTimeSaveTask implements Runnable {

private final Server server;
private final UserRepository userRepository;
private final UserManager userManager;

public UserTimeSaveTask(Server server, UserRepository userRepository, UserManager userManager) {
public UserSpentTimeSaveTask(Server server, UserRepository userRepository, UserManager userManager) {
this.server = server;
this.userRepository = userRepository;
this.userManager = userManager;
Expand Down

0 comments on commit 42d5a54

Please sign in to comment.