Skip to content

Commit

Permalink
Slot Crystal msg
Browse files Browse the repository at this point in the history
  • Loading branch information
TrueDarkLord committed Feb 19, 2024
1 parent bd7026b commit 21b9c23
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ public enum Messages {
GET_PROTECTION_CRYSTAL("Get-Protection-Crystal", "&7You have gained %amount% Protection Crystals."),
GIVE_SCRAMBLER_CRYSTAL("Give-Scrambler-Crystal", "&7You have given %player% %amount% &e&lGrand Scramblers&7."),
GET_SCRAMBLER("Get-Scrambler-Crystal", "&7You have gained %amount% &e&lGrand Scramblers&7."),
GIVE_SLOT_CRYSTAL("Give-Slot-Crystal", "&7You have given %player% %amount% Slot Crystals."),
GET_SLOT_CRYSTAL("Get-Slot-Crystal", "&7You have gained %amount% Slot Crystals."),
BREAK_ENCHANTMENT_SHOP_SIGN("Break-Enchantment-Shop-Sign", "&cYou have removed a Crazy Enchantment Shop Sign."),
SEND_ENCHANTMENT_BOOK("Send-Enchantment-Book", "&7You have sent &6%player% &7a Crazy Enchantment Book."),
NOT_A_GKIT("Not-A-GKit", "&c%kit% is not a GKit."),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -590,8 +590,8 @@ public boolean onCommand(@NotNull CommandSender sender, @NotNull Command cmd, @N
HashMap<String, String> placeholders = new HashMap<>();
placeholders.put("%Amount%", String.valueOf(amount));
placeholders.put("%Player%", player.getName());
sender.sendMessage(Messages.GIVE_PROTECTION_CRYSTAL.getMessage(placeholders));
player.sendMessage(Messages.GET_PROTECTION_CRYSTAL.getMessage(placeholders));
sender.sendMessage(Messages.GIVE_SLOT_CRYSTAL.getMessage(placeholders));
player.sendMessage(Messages.GET_SLOT_CRYSTAL.getMessage(placeholders));
}

return true;
Expand Down
2 changes: 2 additions & 0 deletions paper/src/main/resources/Messages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ Messages:
Give-Protection-Crystal: '&7You have given %player% %amount% Protection Crystals.'
Get-Protection-Crystal: '&7You have gained %amount% Protection Crystals.'
Give-Scrambler-Crystal: '&7You have given %player% %amount% &e&lGrand Scramblers&7.'
Get-Slot-Crystal: '&7You have gained %amount% Slot Crystals.'
Give-Slot-Crystal: '&7You have given %player% %amount% &e&lSlot Crystals&7.'
Get-Scrambler-Crystal: '&7You have gained %amount% &e&lGrand Scramblers&7.'
Break-Enchantment-Shop-Sign: '&cYou have removed a Crazy Enchantment Shop Sign.'
Send-Enchantment-Book: '&7You have sent &6%player% &7a Crazy Enchantment Book.'
Expand Down

0 comments on commit 21b9c23

Please sign in to comment.