Skip to content

Commit

Permalink
Follow Piotrulla suggestions.
Browse files Browse the repository at this point in the history
  • Loading branch information
vLuckyyy committed Aug 21, 2023
1 parent d6b43fa commit defbf4e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import com.eternalcode.core.notice.NoticeService;
import dev.rollczi.litecommands.argument.Arg;
import dev.rollczi.litecommands.command.amount.Min;
import dev.rollczi.litecommands.command.amount.Required;
import dev.rollczi.litecommands.command.execute.Execute;
import dev.rollczi.litecommands.command.permission.Permission;
import dev.rollczi.litecommands.command.route.Route;
Expand Down Expand Up @@ -47,9 +48,9 @@ void execute(Player player, @Arg Enchantment enchantment, @Arg int level) {
}

@Execute
@Min(3)
@DescriptionDocs(description = "Enchants item in hand", arguments = "<player> <enchantment> <level>")
void execute(Player sender, @Arg Player target, @Arg Enchantment enchantment, @Arg int level) {
@Required(3)
@DescriptionDocs(description = "Enchants item in hand", arguments = "<enchantment> <level> <player>")
void execute(Player sender, @Arg Enchantment enchantment, @Arg int level, @Arg Player target) {
PlayerInventory targetInventory = target.getInventory();
ItemStack handItem = targetInventory.getItem(targetInventory.getHeldItemSlot());

Expand Down
4 changes: 2 additions & 2 deletions eternalcore-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ eternalShadowCompiler {

tasks {
runServer {
minecraftVersion("1.19.4")
minecraftVersion("1.20.1")
}
}
}

0 comments on commit defbf4e

Please sign in to comment.