From 5d64b67d72d8552f0a31647cff84b07e8ed08f1a Mon Sep 17 00:00:00 2001 From: montlikadani Date: Wed, 6 Mar 2019 18:12:56 +0100 Subject: [PATCH] Quick fix for last commit --- src/main/java/com/gamingmesh/jobs/PlayerManager.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/gamingmesh/jobs/PlayerManager.java b/src/main/java/com/gamingmesh/jobs/PlayerManager.java index ca04cbd9..147e99c0 100644 --- a/src/main/java/com/gamingmesh/jobs/PlayerManager.java +++ b/src/main/java/com/gamingmesh/jobs/PlayerManager.java @@ -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)