mirror of
https://github.com/hyperdefined/ToolStats.git
synced 2025-12-05 22:31:45 +00:00
removed more debugs
This commit is contained in:
@@ -83,7 +83,6 @@ public class BlocksMined implements Listener {
|
||||
// update the blocks mined
|
||||
ItemStack newItem = toolStats.itemLore.updateBlocksMined(heldItem, 1);
|
||||
if (newItem != null) {
|
||||
toolStats.logger.info(newItem.toString());
|
||||
// replace item in main hand
|
||||
inventory.setItemInMainHand(newItem);
|
||||
}
|
||||
|
||||
@@ -78,7 +78,6 @@ public class InventoryOpen implements Listener {
|
||||
continue;
|
||||
}
|
||||
String hash = toolStats.hashMaker.makeHash(itemStack.getType(), owner, timestamp);
|
||||
toolStats.logger.info(hash);
|
||||
container.set(toolStats.hash, PersistentDataType.STRING, hash);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -283,15 +283,12 @@ public class ItemLore {
|
||||
PersistentDataContainer container = meta.getPersistentDataContainer();
|
||||
// check for tokens
|
||||
if (toolStats.config.getBoolean("tokens.enabled")) {
|
||||
toolStats.logger.info("tokens are enabled!");
|
||||
// if the item has this token, then continue
|
||||
// if the item does not, ignore
|
||||
boolean validTokens = toolStats.itemChecker.checkTokens(container, "blocks-mined");
|
||||
if (!validTokens) {
|
||||
return null;
|
||||
}
|
||||
} else {
|
||||
toolStats.logger.info("tokens are disabled!");
|
||||
}
|
||||
|
||||
// read the current stats from the item
|
||||
@@ -319,10 +316,8 @@ public class ItemLore {
|
||||
}
|
||||
List<Component> newLore = toolStats.itemLore.updateItemLore(meta, oldLine, newLine);
|
||||
meta.lore(newLore);
|
||||
toolStats.logger.info("adding lore!");
|
||||
}
|
||||
clone.setItemMeta(meta);
|
||||
toolStats.logger.info("reached end of function!");
|
||||
return clone;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user