diff --git a/src/main/java/net/badbird5907/anticombatlog/AntiCombatLog.java b/src/main/java/net/badbird5907/anticombatlog/AntiCombatLog.java index b984254..a4d4477 100644 --- a/src/main/java/net/badbird5907/anticombatlog/AntiCombatLog.java +++ b/src/main/java/net/badbird5907/anticombatlog/AntiCombatLog.java @@ -5,7 +5,7 @@ import lombok.Setter; import lombok.SneakyThrows; import net.badbird5907.anticombatlog.commands.AntiCombatLogCommand; -import net.badbird5907.anticombatlog.commands.ResetCooldownCommand; +import net.badbird5907.anticombatlog.commands.ResetTagCommand; import net.badbird5907.anticombatlog.listener.CombatListener; import net.badbird5907.anticombatlog.listener.ConnectionListener; import net.badbird5907.anticombatlog.listener.NPCListener; @@ -25,8 +25,6 @@ import java.io.*; import java.util.*; -import java.util.concurrent.ConcurrentHashMap; -import java.util.logging.Logger; public final class AntiCombatLog extends JavaPlugin { //TODO config editor in game @Getter @@ -49,7 +47,7 @@ public void onEnable() { Metrics metrics = new Metrics(this,12150); ConfigValues.enable(this); getCommand("anticombatlog").setExecutor(new AntiCombatLogCommand()); - getCommand("resetcooldown").setExecutor(new ResetCooldownCommand()); + getCommand("resettag").setExecutor(new ResetTagCommand()); file = new File(getInstance().getDataFolder().getAbsolutePath() + "/data.json"); if (!file.exists()){ file.createNewFile(); @@ -64,7 +62,7 @@ public void onEnable() { updateRunnable = new UpdateRunnable(); updateRunnable.runTaskTimer(this, 40L, 20L); if (getConfig().getBoolean("update-check")){ - new UpdateChecker(this,-1).getVersion(version ->{ + new UpdateChecker(this,94540).getVersion(version ->{ if (!this.getDescription().getVersion().equalsIgnoreCase(version)){ getLogger().info("There a new update available! Download at https://badbird5907.xyz/anticombatlog"); }else{ diff --git a/src/main/java/net/badbird5907/anticombatlog/commands/ResetCooldownCommand.java b/src/main/java/net/badbird5907/anticombatlog/commands/ResetTagCommand.java similarity index 87% rename from src/main/java/net/badbird5907/anticombatlog/commands/ResetCooldownCommand.java rename to src/main/java/net/badbird5907/anticombatlog/commands/ResetTagCommand.java index 9e6c0bb..77e9c53 100644 --- a/src/main/java/net/badbird5907/anticombatlog/commands/ResetCooldownCommand.java +++ b/src/main/java/net/badbird5907/anticombatlog/commands/ResetTagCommand.java @@ -9,11 +9,11 @@ import org.bukkit.entity.Player; import org.jetbrains.annotations.NotNull; -public class ResetCooldownCommand implements CommandExecutor { +public class ResetTagCommand implements CommandExecutor { @Override public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, @NotNull String[] args) { if (args.length != 1){ - sender.sendMessage(CC.RED + "Usage: /resetcooldown "); + sender.sendMessage(CC.RED + "Usage: /resettag "); return true; } String target = args[0]; diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 44063c9..da43a64 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -7,6 +7,7 @@ commands: anticombatlog: description: main command aliases: [combat,combatlog] - resetcooldown: - description: reset cooldown - permission: anticombatlog.command.resetcooldown + resettag: + description: reset combat tag + aliases: [resetcombattag] + permission: anticombatlog.command.resettag