Skip to content

Commit

Permalink
Remove hardcoded lines in additional shop item lore
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasEi committed Feb 11, 2021
1 parent f9aae36 commit 8fb0a64
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 3.3.0
- Removed hardcoded parts in additional lore for shop items
- the default items where adapted to include the previously hardcoded lines

## 3.2.0
- extend GameRuleMultiRewards to support CookieClicker rewards

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<artifactId>gamebox</artifactId>
<name>GameBox</name>
<packaging>jar</packaging>
<version>3.2.0</version>
<version>3.3.0</version>
<description>Collection of inventory games</description>
<url>https://gamebox.nikl.me</url>

Expand Down
3 changes: 0 additions & 3 deletions src/main/java/me/nikl/gamebox/inventory/shop/Category.java
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,6 @@ private ItemStack getButtonItem(ItemStack itemStack, ConfigurationSection pageSe
}
if (pageSection.isList(path + ".additionalLore")) {
List<String> lore = new ArrayList<>();
lore.add(" ");
lore.add(ChatColor.GOLD + "- - - - - - - - - - - - - - - - - - -");
lore.add(" ");
List<String> addLore = new ArrayList<>(pageSection.getStringList(path + ".additionalLore"));
for (int i = 0; i < addLore.size(); i++) {
addLore.set(i, StringUtility.color(addLore.get(i)));
Expand Down
12 changes: 12 additions & 0 deletions src/main/resources/tokenShop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ shop:

# optional lore added to the default shop lore that already contains the price of the item/command
additionalLore:
- ""
- "&6- - - - - - - - - - - - - - - - - - -"
- ""
- "&bPersonal greeting by the server"
- ""
- "&bHave the permissions:"
Expand Down Expand Up @@ -131,6 +134,9 @@ shop:
tokens: 1
buttonItem:
additionalLore:
- ""
- "&6- - - - - - - - - - - - - - - - - - -"
- ""
- "&bYou need the following permission"
- "&b to buy this item:"
- " "
Expand All @@ -154,6 +160,9 @@ shop:
materialData: "nether_star"
displayName: "&9&lExample Command"
additionalLore:
- ""
- "&6- - - - - - - - - - - - - - - - - - -"
- ""
- "&bIf you buy this, the server"
- "&b will thank you ;)"
- " "
Expand All @@ -180,6 +189,9 @@ shop:
materialData: "obsidian"
displayName: "&9&lExample give Command"
additionalLore:
- ""
- "&6- - - - - - - - - - - - - - - - - - -"
- ""
- "&bGives you 59 obsidian per command"
- " &bIf you have the perm."
- " &6my.server.builder"
Expand Down

0 comments on commit 8fb0a64

Please sign in to comment.