Buy enchantment + Misc Update

This commit is contained in:
tyuXX 2025-04-03 18:37:43 +03:00
parent 53dbcb6800
commit a24db4dbcd
41 changed files with 488 additions and 122 deletions

View file

@ -16,14 +16,14 @@ public class EntityDeathEvent {
WorldStats worldStats = WorldStats.getWorldStats(event.getEntity().getWorld());
playerStats.changeStat("total_kill_count", 1);
playerStats.changeStat("money", (int)Math.round(3 * PlayerLevelHandler.getLevelHandler(event.getEntity().getKiller()).getLesserMoneyMultiplier()));
playerStats.changeStat("tPoint", (int)Math.round(25 * PlayerLevelHandler.getLevelHandler(event.getEntity().getKiller()).getMoneyMultiplier()));
playerStats.changeStat("money", (int) Math.round(3 * PlayerLevelHandler.getLevelHandler(event.getEntity().getKiller()).getLesserMoneyMultiplier()));
playerStats.changeStat("tPoint", (int) Math.round(25 * PlayerLevelHandler.getLevelHandler(event.getEntity().getKiller()).getMoneyMultiplier()));
worldStats.changeStat("wPoint", 40);
PlayerLevelHandler.getLevelHandler(event.getEntity().getKiller()).addExp(50);
if (event.getEntity().getType() == EntityType.PLAYER) {
playerStats.changeStat("money", (int)Math.round(12 * PlayerLevelHandler.getLevelHandler(event.getEntity().getKiller()).getLesserMoneyMultiplier()));
playerStats.changeStat("tPoint", (int)Math.round(50 * PlayerLevelHandler.getLevelHandler(event.getEntity().getKiller()).getMoneyMultiplier()));
playerStats.changeStat("money", (int) Math.round(12 * PlayerLevelHandler.getLevelHandler(event.getEntity().getKiller()).getLesserMoneyMultiplier()));
playerStats.changeStat("tPoint", (int) Math.round(50 * PlayerLevelHandler.getLevelHandler(event.getEntity().getKiller()).getMoneyMultiplier()));
worldStats.changeStat("wPoint", 110);
PlayerLevelHandler.getLevelHandler(event.getEntity().getKiller()).addExp(150);
PlayerTitleManager.killedPlayer(event.getEntity().getKiller());