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