From 9544745cb47e490166d7991c33263fb405637e7e Mon Sep 17 00:00:00 2001 From: Ka0rX Date: Tue, 28 Mar 2023 14:30:21 +0100 Subject: [PATCH] Removed / Modified verbose --- .../main/java/net/Indyuce/mmocore/api/player/PlayerData.java | 1 - .../Indyuce/mmocore/command/rpg/admin/SkillCommandTreeNode.java | 2 +- .../src/main/java/net/Indyuce/mmocore/gui/SkillList.java | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/MMOCore-API/src/main/java/net/Indyuce/mmocore/api/player/PlayerData.java b/MMOCore-API/src/main/java/net/Indyuce/mmocore/api/player/PlayerData.java index 2984400e..48afee92 100644 --- a/MMOCore-API/src/main/java/net/Indyuce/mmocore/api/player/PlayerData.java +++ b/MMOCore-API/src/main/java/net/Indyuce/mmocore/api/player/PlayerData.java @@ -1129,7 +1129,6 @@ public class PlayerData extends OfflinePlayerData implements Closable, Experienc if (isOnline()) getStats().updateStats(); - Bukkit.broadcastMessage("IN"); //Loads the classUnlockedSkills profess.getSkills() .stream() diff --git a/MMOCore-API/src/main/java/net/Indyuce/mmocore/command/rpg/admin/SkillCommandTreeNode.java b/MMOCore-API/src/main/java/net/Indyuce/mmocore/command/rpg/admin/SkillCommandTreeNode.java index 21e93385..2ee60cba 100644 --- a/MMOCore-API/src/main/java/net/Indyuce/mmocore/command/rpg/admin/SkillCommandTreeNode.java +++ b/MMOCore-API/src/main/java/net/Indyuce/mmocore/command/rpg/admin/SkillCommandTreeNode.java @@ -112,7 +112,7 @@ public class SkillCommandTreeNode extends CommandTreeNode { playerData.getMMOPlayerData().lock(skill.getSkill()); else playerData.getMMOPlayerData().unlock(skill.getSkill()); - CommandVerbose.verbose(sender, CommandVerbose.CommandType.SKILL, "The skill " + skill.getSkill() + " is now " + (lock ? "locked" : "unlocked" + " for " + player.getName())); + CommandVerbose.verbose(sender, CommandVerbose.CommandType.SKILL, ChatColor.GOLD+"The skill " + skill.getSkill().getName() + " is now " + (lock ? "locked" : "unlocked" + " for " + player.getName())); return CommandResult.SUCCESS; } } diff --git a/MMOCore-API/src/main/java/net/Indyuce/mmocore/gui/SkillList.java b/MMOCore-API/src/main/java/net/Indyuce/mmocore/gui/SkillList.java index 6b7b10fc..cb387708 100644 --- a/MMOCore-API/src/main/java/net/Indyuce/mmocore/gui/SkillList.java +++ b/MMOCore-API/src/main/java/net/Indyuce/mmocore/gui/SkillList.java @@ -322,8 +322,6 @@ public class SkillList extends EditableInventory { public SkillViewerInventory(PlayerData playerData, EditableInventory editable) { super(playerData, editable); - Bukkit.broadcastMessage("UNLOCKED"); - playerData.getMMOPlayerData().getUnlockedItems().forEach(str->Bukkit.broadcastMessage(str)); skills = playerData.getProfess().getSkills() .stream() .filter((classSkill)->playerData.getMMOPlayerData().hasUnlocked(classSkill.getSkill()))