Debug for exp-notification messages in messages.yml

This commit is contained in:
Ka0rX 2022-10-02 14:21:02 +02:00
parent a6b2fa594e
commit 4b448d7fa8
2 changed files with 4 additions and 4 deletions

View File

@ -218,7 +218,7 @@ public class PlayerProfessions {
if (check) { if (check) {
Bukkit.getPluginManager().callEvent(new PlayerLevelUpEvent(playerData, profession, oldLevel, level)); Bukkit.getPluginManager().callEvent(new PlayerLevelUpEvent(playerData, profession, oldLevel, level));
new SmallParticleEffect(playerData.getPlayer(), Particle.SPELL_INSTANT); new SmallParticleEffect(playerData.getPlayer(), Particle.SPELL_INSTANT);
new ConfigMessage("profession-level-up").addPlaceholders("level", "" + level, "profession", profession.getName()) new ConfigMessage("profession-level-up").addPlaceholders("level", "" + level, "profession", profession.getId(),"profession-name", profession.getName())
.send(playerData.getPlayer()); .send(playerData.getPlayer());
MMOCore.plugin.soundManager.getSound(SoundEvent.LEVEL_UP).playTo(playerData.getPlayer()); MMOCore.plugin.soundManager.getSound(SoundEvent.LEVEL_UP).playTo(playerData.getPlayer());
playerData.getStats().updateStats(); playerData.getStats().updateStats();
@ -229,7 +229,7 @@ public class PlayerProfessions {
for (int j = 0; j < 20; j++) for (int j = 0; j < 20; j++)
bar.append(j == chars ? "" + ChatColor.WHITE + ChatColor.BOLD : "").append("|"); bar.append(j == chars ? "" + ChatColor.WHITE + ChatColor.BOLD : "").append("|");
if (playerData.isOnline()) if (playerData.isOnline())
MMOCore.plugin.configManager.getSimpleMessage("exp-notification", "profession", profession.getName(), "progress", bar.toString(), "ratio", MMOCore.plugin.configManager.getSimpleMessage("exp-notification","profession",profession.getId(), "profession-name", profession.getName(), "progress", bar.toString(), "ratio",
MythicLib.plugin.getMMOConfig().decimal.format((double) exp / needed * 100)).send(playerData.getPlayer()); MythicLib.plugin.getMMOConfig().decimal.format((double) exp / needed * 100)).send(playerData.getPlayer());
} }
} }

View File

@ -6,8 +6,8 @@ level-up:
- '&eUse &6/p &eto see your new statistics!' - '&eUse &6/p &eto see your new statistics!'
- '' - ''
profession-level-up: profession-level-up:
- '&eYou are now level &6{level}&e in &6{profession}&e!' - '&eYou are now level &6{level}&e in &6{profession-name}&e!'
exp-notification: '%&f{profession} &e{progress} &e{ratio}%' exp-notification: '%&f{profession-name} &e{progress} &e{ratio}%'
exp-hologram: '&e+{exp} EXP!' exp-hologram: '&e+{exp} EXP!'
class-select: '&eYou are now a &6{class}&e!' class-select: '&eYou are now a &6{class}&e!'
already-on-class: '&cYou are already a {class}.' already-on-class: '&cYou are already a {class}.'