mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-25 20:16:13 +01:00
Quick fix for last commit
This commit is contained in:
parent
417b6f70f9
commit
5d64b67d72
@ -602,10 +602,10 @@ public class PlayerManager {
|
||||
message = message.replace("%titlename%", levelUpEvent.getNewTitleColor() + levelUpEvent.getNewTitleName());
|
||||
message = message.replace("%jobname%", job.getChatColor() + job.getName());
|
||||
for (String line : message.split("\n")) {
|
||||
if (Jobs.getGCManager().isBroadcastingSkillups())
|
||||
if (Jobs.getGCManager().BroadcastingSkillUpLevels.contains(oldLevel + 1) || Jobs.getGCManager().BroadcastingSkillUpLevels.contains(0))
|
||||
Bukkit.getServer().broadcastMessage(line);
|
||||
else if (player != null) {
|
||||
if (Jobs.getGCManager().isBroadcastingSkillups()) {
|
||||
if (Jobs.getGCManager().BroadcastingSkillUpLevels.contains(oldLevel + 1) || Jobs.getGCManager().BroadcastingSkillUpLevels.contains(0))
|
||||
Bukkit.getServer().broadcastMessage(line);
|
||||
} else if (player != null) {
|
||||
if (Jobs.getGCManager().TitleChangeActionBar)
|
||||
Jobs.getActionBar().send(player, line);
|
||||
if (Jobs.getGCManager().TitleChangeChat)
|
||||
|
Loading…
Reference in New Issue
Block a user