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
470007a6
Commit
470007a6
authored
May 14, 2022
by
zrll_
Committed by
Melledy
May 14, 2022
Browse files
Fix connot execute quest command in console
parent
3c654cf0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/command/commands/QuestCommand.java
View file @
470007a6
...
@@ -37,7 +37,7 @@ public final class QuestCommand implements CommandHandler {
...
@@ -37,7 +37,7 @@ public final class QuestCommand implements CommandHandler {
switch
(
cmd
)
{
switch
(
cmd
)
{
case
"add"
->
{
case
"add"
->
{
GameQuest
quest
=
send
er
.
getQuestManager
().
addQuest
(
questId
);
GameQuest
quest
=
targetPlay
er
.
getQuestManager
().
addQuest
(
questId
);
if
(
quest
!=
null
)
{
if
(
quest
!=
null
)
{
CommandHandler
.
sendMessage
(
sender
,
translate
(
sender
,
"commands.quest.added"
,
questId
));
CommandHandler
.
sendMessage
(
sender
,
translate
(
sender
,
"commands.quest.added"
,
questId
));
...
@@ -47,7 +47,7 @@ public final class QuestCommand implements CommandHandler {
...
@@ -47,7 +47,7 @@ public final class QuestCommand implements CommandHandler {
CommandHandler
.
sendMessage
(
sender
,
translate
(
sender
,
"commands.quest.not_found"
));
CommandHandler
.
sendMessage
(
sender
,
translate
(
sender
,
"commands.quest.not_found"
));
}
}
case
"finish"
->
{
case
"finish"
->
{
GameQuest
quest
=
send
er
.
getQuestManager
().
getQuestById
(
questId
);
GameQuest
quest
=
targetPlay
er
.
getQuestManager
().
getQuestById
(
questId
);
if
(
quest
==
null
)
{
if
(
quest
==
null
)
{
CommandHandler
.
sendMessage
(
sender
,
translate
(
sender
,
"commands.quest.not_found"
));
CommandHandler
.
sendMessage
(
sender
,
translate
(
sender
,
"commands.quest.not_found"
));
...
...
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