1
0
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:
montlikadani 2019-03-06 18:12:56 +01:00
parent 417b6f70f9
commit 5d64b67d72

View File

@ -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)