@@ -367,8 +367,8 @@ private ItemStack tridentMobKills(ItemStack trident) {
367367
368368 // do we add the lore based on the config?
369369 if (toolStats .configTools .checkConfig (newTrident .getType (), "mob-kills" )) {
370- String oldMobKillsFormatted = toolStats .numberFormat .formatDouble (mobKills );
371- String newMobKillsFormatted = toolStats .numberFormat .formatDouble (mobKills + 1 );
370+ String oldMobKillsFormatted = toolStats .numberFormat .formatInt (mobKills );
371+ String newMobKillsFormatted = toolStats .numberFormat .formatInt (mobKills + 1 );
372372 String oldLine = toolStats .configTools .formatLore ("kills.mob" , "{kills}" , oldMobKillsFormatted );
373373 String newLine = toolStats .configTools .formatLore ("kills.mob" , "{kills}" , newMobKillsFormatted );
374374 if (oldLine == null || newLine == null ) {
@@ -408,8 +408,8 @@ private ItemStack tridentPlayerKills(ItemStack trident) {
408408
409409 // do we add the lore based on the config?
410410 if (toolStats .configTools .checkConfig (newTrident .getType (), "player-kills" )) {
411- String oldPlayerKillsFormatted = toolStats .numberFormat .formatDouble (playerKills );
412- String newPlayerKillsFormatted = toolStats .numberFormat .formatDouble (playerKills + 1 );
411+ String oldPlayerKillsFormatted = toolStats .numberFormat .formatInt (playerKills );
412+ String newPlayerKillsFormatted = toolStats .numberFormat .formatInt (playerKills + 1 );
413413 String oldLine = toolStats .configTools .formatLore ("kills.player" , "{kills}" , oldPlayerKillsFormatted );
414414 String newLine = toolStats .configTools .formatLore ("kills.player" , "{kills}" , newPlayerKillsFormatted );
415415 if (oldLine == null || newLine == null ) {
0 commit comments