This commit is contained in:
yaohunya 2025-07-20 03:24:14 +08:00
parent 9a0ee2d107
commit fbc3897bff

View File

@ -65,6 +65,7 @@ public class KillMobsListener implements Listener {
if (itemKey == null) {
return;
}
String playerName = player.getName();
double luckyValue = getLuckyValue(itemKey);
CacheManager cacheManager = AuCardBackpack.getCacheManager();
int dropAmount = cacheManager.getDropData(player.getName(), itemKey);
@ -90,6 +91,7 @@ public class KillMobsListener implements Listener {
}
player.getInventory().addItem(stack);
DemonAPI.sendTitle(player, 0, 20, 10, "", "§a+ §e" + itemName + " §7X §a" + stack.getAmount());
System.out.println("[日志 - 魂卡] 玩家 "+playerName+" 掉落 "+itemKey);
}
} else {
// 当数量大于128后将不会增加幸运值