Skip to content

Commit

Permalink
Bug Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
PokeMichele authored Nov 29, 2022
1 parent f320d11 commit e5af2dc
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/main/java/me/pokemichele/logdel8/LogDelCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit e5af2dc

Please sign in to comment.