Skip to content

Commit

Permalink
Merge pull request #2118 from GiganticMinecraft/fix/gachaCommand
Browse files Browse the repository at this point in the history
fix: ガチャ景品の確率と量を変更するコマンドのパーサー指定が逆になっていたのを修正
  • Loading branch information
Lucky3028 authored Jun 28, 2023
2 parents ce304c7 + ab2db72 commit 90f08f0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,8 @@ class GachaCommand[
.beginConfiguration()
.argumentsParsers(
List(
Parsers.closedRangeInt(1, 64, MessageEffect("数は1~64で指定してください")),
Parsers.closedRangeInt(1, Int.MaxValue, MessageEffect("IDは正の値を指定してください"))
Parsers.closedRangeInt(1, Int.MaxValue, MessageEffect("IDは正の値を指定してください")),
Parsers.closedRangeInt(1, 64, MessageEffect("アイテム数は1~64で指定してください"))
)
)
.execution { context =>
Expand Down Expand Up @@ -326,8 +326,8 @@ class GachaCommand[
.beginConfiguration()
.argumentsParsers(
List(
probabilityParser,
Parsers.closedRangeInt(1, Int.MaxValue, MessageEffect("IDは正の値を指定してください。"))
Parsers.closedRangeInt(1, Int.MaxValue, MessageEffect("IDは正の値を指定してください。")),
probabilityParser
)
)
.execution { context =>
Expand Down

0 comments on commit 90f08f0

Please sign in to comment.