Skip to content

Commit

Permalink
GH-558 Fix self execute on /heal, /feed, /kill commands. (#559)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rollczi authored Nov 20, 2023
1 parent b1977d8 commit 81b5130
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void execute(Player player) {
.send();
}

@Execute
@Execute(required = 1)
@Permission("eternalcore.feed.other")
@DescriptionDocs(description = "Feed other player", arguments = "<player>")
void execute(Viewer viewer, @Arg Player target) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void execute(Player player) {
this.noticeService.player(player.getUniqueId(), translation -> translation.player().healMessage());
}

@Execute
@Execute(required = 1)
@Permission("eternalcore.heal.other")
@DescriptionDocs(description = "Heal other player", arguments = "<player>")
void execute(Viewer viewer, @Arg Player target) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void execute(Player player) {
.send();
}

@Execute
@Execute(required = 1)
@DescriptionDocs(description = "Kill specified player", arguments = "<player>")
void execute(Viewer audience, @Arg Player player) {
player.setHealth(0);
Expand Down

0 comments on commit 81b5130

Please sign in to comment.