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; }