Skip to content

Commit

Permalink
Fixed colour on KitMenuItems
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigerpanzer02 committed Oct 15, 2023
1 parent 1468bf6 commit 2320976
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ private void executeUpdate(File file, CoreFileVersion coreFileVersion, int versi
case LANGUAGE:
switch(version) {
case 1:
MigratorUtils.insertAfterLine(file, "Kit:", " No-Armor: \"&cYou can't wear armor with your kit!\"");
MigratorUtils.insertAfterLine(file, "Kit:", " No-Armor: \"%color_chat_issue%%plugin_prefix% You can't wear armor with your kit!\"");
break;
default:
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public void createMenu(Player player) {
.lore(kit.getDescription())
.lore("")
.lore(kit.isUnlockedByPlayer(player) ? unlockedString : lockedString)
.colorizeItem()
.build();

gui.addItem(new SimpleClickableItem(itemStack, event -> {
Expand Down
2 changes: 1 addition & 1 deletion MiniGamesBox Classic/src/main/resources/language.yml
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ Kit:
Not-Unlocked: "%color_chat_issue%%plugin_prefix% You haven't unlocked %value% yet!"
Choose: "%plugin_prefix% You have chosen: %value%!"
Cooldown: "%color_chat_issue%%plugin_prefix% Kit ability still on cooldown (%number%)!"
No-Armor: "&cYou can't wear armor with your kit!"
No-Armor: "%color_chat_issue%%plugin_prefix% You can't wear armor with your kit!"
Menu:
Title: "Kit Menu"
Lore:
Expand Down

0 comments on commit 2320976

Please sign in to comment.