Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
feat(Chat): プレイヤー名部分をクォートして指定できるように (#920)
Browse files Browse the repository at this point in the history
  • Loading branch information
book000 authored Aug 11, 2022
1 parent c81e558 commit 9dba3aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/jaoafa/mymaid4/command/Cmd_Chat.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* jaoLicense
*
* Copyright (c) 2021 jao Minecraft Server
* Copyright (c) 2022 jao Minecraft Server
*
* The following license applies to this project: jaoLicense
*
Expand Down Expand Up @@ -43,7 +43,7 @@ public MyMaidCommand.Cmd register(Command.Builder<CommandSender> builder) {
return new MyMaidCommand.Cmd(
builder
.meta(CommandMeta.DESCRIPTION, "偽のプレイヤーに喋らせます。")
.argument(StringArgument.single("player"), ArgumentDescription.of("喋らせるプレイヤー名"))
.argument(StringArgument.quoted("player"), ArgumentDescription.of("喋らせるプレイヤー名"))
.argument(StringArgument.greedy("message"), ArgumentDescription.of("喋らせるメッセージ"))
.handler(this::chatFake)
.build()
Expand Down

0 comments on commit 9dba3aa

Please sign in to comment.