Skip to content

Commit

Permalink
Fix armor modifier add command not accepting decimal values
Browse files Browse the repository at this point in the history
  • Loading branch information
Archy-X committed Jun 4, 2024
1 parent 7796e6f commit 46077d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Release versions are published to the Maven central repository.
<groupId>dev.aurelium</groupId>
<artifactId>auraskills-api-bukkit</artifactId>
<version>2.1.0</version>
<scope>provided</scope>
</dependency>
```
### Gradle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public ArmorCommand(AuraSkills plugin) {
@CommandCompletion("@stats @nothing false|true")
@CommandPermission("auraskills.command.armor.modifier")
@Description("Adds an armor stat modifier to the item held, along with lore by default.")
public void onArmorModifierAdd(@Flags("itemheld") Player player, Stat stat, int value, @Default("true") boolean lore) {
public void onArmorModifierAdd(@Flags("itemheld") Player player, Stat stat, double value, @Default("true") boolean lore) {
Locale locale = plugin.getUser(player).getLocale();
ItemStack item = player.getInventory().getItemInMainHand();
SkillsItem skillsItem = new SkillsItem(item, plugin);
Expand Down

0 comments on commit 46077d1

Please sign in to comment.