diff --git a/common/src/main/java/io/github/fisher2911/hmccosmetics/command/CosmeticsCommand.java b/common/src/main/java/io/github/fisher2911/hmccosmetics/command/CosmeticsCommand.java index ca02c4e8..21556da6 100644 --- a/common/src/main/java/io/github/fisher2911/hmccosmetics/command/CosmeticsCommand.java +++ b/common/src/main/java/io/github/fisher2911/hmccosmetics/command/CosmeticsCommand.java @@ -215,6 +215,10 @@ public class CosmeticsCommand extends CommandBase { () -> wardrobe.spawnFakePlayer(player, this.plugin) ); this.cosmeticsMenu.openDefault(player); + this.messageHandler.sendMessage( + player, + Messages.OPENED_WARDROBE + ); } private void setDyeColor(final String dyeColor, final ArmorItem armorItem, final CommandSender sender) { diff --git a/common/src/main/java/io/github/fisher2911/hmccosmetics/message/MessageHandler.java b/common/src/main/java/io/github/fisher2911/hmccosmetics/message/MessageHandler.java index dd9b1655..757a2042 100644 --- a/common/src/main/java/io/github/fisher2911/hmccosmetics/message/MessageHandler.java +++ b/common/src/main/java/io/github/fisher2911/hmccosmetics/message/MessageHandler.java @@ -12,6 +12,7 @@ import net.kyori.adventure.text.Component; import net.kyori.adventure.text.serializer.bungeecord.BungeeComponentSerializer; import net.kyori.adventure.title.Title; import net.md_5.bungee.api.ChatMessageType; +import org.bukkit.Bukkit; import org.bukkit.command.CommandSender; import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.configuration.file.YamlConfiguration; @@ -152,6 +153,8 @@ public class MessageHandler { } }).replace(Placeholder.PREFIX, prefix); + Bukkit.broadcastMessage("Prefix: " + prefix); + final Message.Type messageType = Utils.stringToEnum( Utils.replaceIfNull(config.getString("type"), ""), Message.Type.class, Message.Type.MESSAGE diff --git a/common/src/main/resources/messages.yml b/common/src/main/resources/messages.yml index 458018b4..6a148c6c 100644 --- a/common/src/main/resources/messages.yml +++ b/common/src/main/resources/messages.yml @@ -1,19 +1,23 @@ -no-permission: "No Permission!" -no-cosmetic-permission: "You do not have permission for this cosmetic!" -set-hat: "Applied hat!" -removed-hat: "Removed hat!" -set-backpack: "Applied backpack!" -removed-backpack: "Removed backpack!" -set-off-hand: "Applied offhand!" -removed-off-hand: "Removed offhand!" -set-dye-color: "Set color of %item%!" +prefix: "" +no-permission: "%prefix% No Permission!" +no-cosmetic-permission: "%prefix% You do not have permission for this cosmetic!" +set-hat: "%prefix% Applied hat!" +removed-hat: "%prefix% Removed hat!" +set-backpack: "%prefix% Applied backpack!" +removed-backpack: "%prefix% Removed backpack!" +set-off-hand: "%prefix% Applied offhand!" +removed-off-hand: "%prefix% Removed offhand!" +set-dye-color: "%prefix% Set color of %item%!" must-be-player: "You must be a player to do this!" -reloaded: "Config files reloaded!" -invalid-type: "Invalid cosmetic type, please use hat, backpack or off_hand!" -set-other-backpack: "You have set the backpack of %player% to %type%" -set-other-hat: "You have set the hat of %player% to %type%" -set-other-off-hand: "You have set the off hand of %player% to %type%" -help-command: "<#6D9DC5> HMCCosmetics - Help  <#6D9DC5> +reloaded: "%prefix% Config files reloaded!" +invalid-type: "%prefix% Invalid cosmetic type, please use hat, backpack or off_hand!" +set-other-backpack: "%prefix% You have set the backpack of %player% to %type%" +set-other-hat: "%prefix% You have set the hat of %player% to %type%" +set-other-off-hand: "%prefix% You have set the off hand of %player% to %type%" +opened-wardrobe: "%prefix% Viewing wardrobe!" +closed-wardrobe: "%prefix% Closed wardrobe!" +wardrobe-already-open: "%prefix% The wardrobe is already open!" +help-command: "<#6D9DC5> %prefix% HMCCosmetics - Help %prefix% <#6D9DC5> <#5AE4B5>- <#40B7D6>/cosmetics - <#6D9DC5>Opens cosmetics GUI.