Skip to content

Commit

Permalink
fix: restart can be postponed indefinitely
Browse files Browse the repository at this point in the history
  • Loading branch information
acrylic-style committed Sep 14, 2023
1 parent e810570 commit a21b0d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

group = "net.azisaba"
version = "6.7.1"
version = "6.7.2"

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(8))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command
return true;
}
Player player = (Player) sender;
if (players.contains(player.getUniqueId())) {
sender.sendMessage(ChatColor.RED + "すでに投票済みです。");
return true;
}
players.add(player.getUniqueId());
sender.sendMessage(ChatColor.GREEN + "投票しました。");
if (sender.hasPermission("lifecore.extend-time-immediately") || players.size() == 5) {
Expand Down

0 comments on commit a21b0d2

Please sign in to comment.