Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
bdc9e483
Commit
bdc9e483
authored
May 09, 2022
by
筱傑
Committed by
Melledy
May 09, 2022
Browse files
Fixed MissingFormatArgumentException (#727)
Format string is `"given_level": "Given %s with level %s %s times to %s"`
parent
9a7d78e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/command/commands/GiveCommand.java
View file @
bdc9e483
...
@@ -123,7 +123,7 @@ public final class GiveCommand implements CommandHandler {
...
@@ -123,7 +123,7 @@ public final class GiveCommand implements CommandHandler {
}
else
if
(
itemData
.
getItemType
()
==
ItemType
.
ITEM_WEAPON
)
{
}
else
if
(
itemData
.
getItemType
()
==
ItemType
.
ITEM_WEAPON
)
{
CommandHandler
.
sendMessage
(
sender
,
translate
(
"commands.give.given_with_level_and_refinement"
,
Integer
.
toString
(
item
),
Integer
.
toString
(
lvl
),
Integer
.
toString
(
refinement
),
Integer
.
toString
(
amount
),
Integer
.
toString
(
targetPlayer
.
getUid
())));
CommandHandler
.
sendMessage
(
sender
,
translate
(
"commands.give.given_with_level_and_refinement"
,
Integer
.
toString
(
item
),
Integer
.
toString
(
lvl
),
Integer
.
toString
(
refinement
),
Integer
.
toString
(
amount
),
Integer
.
toString
(
targetPlayer
.
getUid
())));
}
else
{
}
else
{
CommandHandler
.
sendMessage
(
sender
,
translate
(
"commands.give.given_level"
,
Integer
.
toString
(
item
),
Integer
.
toString
(
lvl
),
Integer
.
toString
(
amount
)));
CommandHandler
.
sendMessage
(
sender
,
translate
(
"commands.give.given_level"
,
Integer
.
toString
(
item
),
Integer
.
toString
(
lvl
),
Integer
.
toString
(
amount
)
,
Integer
.
toString
(
targetPlayer
.
getUid
())
));
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment