Skip to content

Commit

Permalink
1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
BenceX100 committed Sep 11, 2023
1 parent c321972 commit 3c96055
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.artillexstudios</groupId>
<artifactId>AxKills</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
<packaging>jar</packaging>

<name>AxKills</name>
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/com/artillexstudios/axkills/utils/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ public static String setItem(@NotNull Player player) {
} else {
if (player.getInventory().getItemInHand() == null) return "air";
final ItemStack it = player.getInventory().getItemInHand();
final String typeStr = it.getType().toString().replace("_", " ").toLowerCase();
String typeStr = it.getType().toString().replace("_", " ").toLowerCase();

typeStr = typeStr.replace("air", CONFIG.getString("empty-hand-text"));

if (it.getItemMeta() == null) return CONFIG.getString("item-format").replace("%item%", typeStr);
final ItemMeta meta = it.getItemMeta();
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ prefix: "&#EE3333&lAxKills&r &7» "
reload: "&#33FF33Successfully reloaded the plugin!"

item-format: "%item%"
empty-hand-text: "air"

errors:
no-permission: "&#FF3333You don't have a permission to use this!"

# do not change this
version: 2
version: 3

0 comments on commit 3c96055

Please sign in to comment.