From e5af2dcd6a35861db539fef02aa142ba52b32d3f Mon Sep 17 00:00:00 2001 From: Michele <50552288+PokeMichele@users.noreply.github.com> Date: Tue, 29 Nov 2022 18:44:01 +0100 Subject: [PATCH] Bug Fixes --- src/main/java/me/pokemichele/logdel8/LogDelCommand.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/main/java/me/pokemichele/logdel8/LogDelCommand.java b/src/main/java/me/pokemichele/logdel8/LogDelCommand.java index 9ade519..a007f03 100644 --- a/src/main/java/me/pokemichele/logdel8/LogDelCommand.java +++ b/src/main/java/me/pokemichele/logdel8/LogDelCommand.java @@ -4,7 +4,6 @@ import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; -import org.bukkit.entity.Player; import java.io.File; import java.io.IOException; @@ -41,17 +40,12 @@ public static void LogDelete() { @Override public boolean onCommand(CommandSender sender, Command cmd, String CommandLabel, String[] args) { - Player player = (Player) sender; - if (sender instanceof Player) { if (cmd.getName().equalsIgnoreCase("logdel")) { LogDelete(); } - } else{ - System.out.println("You can't execute this command from console"); - } return false; }