mirror of
https://github.com/hyperdefined/ToolStats.git
synced 2025-12-06 06:41:44 +00:00
allow axes player/mob kills
This commit is contained in:
@@ -101,6 +101,17 @@ public class AnvilEvent implements Listener {
|
|||||||
}
|
}
|
||||||
addToken(event, tokenType, "blocks-mined", clone);
|
addToken(event, tokenType, "blocks-mined", clone);
|
||||||
}
|
}
|
||||||
|
// axes are a mining tool, so double check them here for player/mob kills
|
||||||
|
if (firstSlotMaterial.toString().toLowerCase(Locale.ROOT).contains("_axe")) {
|
||||||
|
if (tokenType.equalsIgnoreCase("player-kills")) {
|
||||||
|
addToken(event, tokenType, "player-kills", clone);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (tokenType.equalsIgnoreCase("mobs-kills")) {
|
||||||
|
addToken(event, tokenType, "mobs-kills", clone);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (toolStats.itemChecker.isArmor(firstSlotMaterial)) {
|
if (toolStats.itemChecker.isArmor(firstSlotMaterial)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user