Skip to content

Commit

Permalink
Update eternalcore-core/src/main/java/com/eternalcode/core/feature/ho…
Browse files Browse the repository at this point in the history
…me/homeadmin/PlayerHomeMultiArgument.java

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
vLuckyyy and coderabbitai[bot] authored Oct 12, 2024
1 parent 475959b commit 7e4c228
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ public ParseResult<PlayerHomeEntry> parse(
.viewer(viewer);

if (!rawInput.hasNext()) {
return ParseResult.failure(offlinePlayer);
NoticeBroadcast missingPlayerName = this.noticeService.create()
.notice(translation -> translation.argument().missingPlayerName())
.viewer(viewer);
return ParseResult.failure(missingPlayerName);
}

String playerName = rawInput.next();
Expand Down

0 comments on commit 7e4c228

Please sign in to comment.