Skip to content

Commit

Permalink
fix: use debug() when removing kit items (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
SrBedrock authored Aug 16, 2023
1 parent 782a25b commit c9e9b8e
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
import org.bukkit.inventory.PlayerInventory;
import org.jetbrains.annotations.NotNull;

import java.util.logging.Level;

import static java.lang.String.format;

public class ItemsProtectionListener extends TBListener {
Expand Down Expand Up @@ -51,7 +49,7 @@ private void process(@NotNull Player player) {
continue;
}
if (new NBTItem(item).getBoolean(Kit.NBT_TAG)) {
plugin.getLogger().log(Level.INFO, format("Removed kit item from %s's inventory", player.getName()));
plugin.debug(format("Removing kit item from %s's inventory", player.getName()));
inventory.remove(item);
}
}
Expand Down

0 comments on commit c9e9b8e

Please sign in to comment.