Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Grasscutter
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
ziqian zhang
Grasscutter
Commits
b31dab04
Commit
b31dab04
authored
3 years ago
by
fengyuecanzhu
Browse files
Options
Downloads
Patches
Plain Diff
change fhp to heal
parent
ff778914
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/emu/grasscutter/command/commands/HealCommand.java
+4
-4
4 additions, 4 deletions
...in/java/emu/grasscutter/command/commands/HealCommand.java
with
4 additions
and
4 deletions
src/main/java/emu/grasscutter/command/commands/
FullHp
Command.java
→
src/main/java/emu/grasscutter/command/commands/
Heal
Command.java
+
4
−
4
View file @
b31dab04
...
@@ -11,9 +11,9 @@ import emu.grasscutter.server.packet.send.PacketLifeStateChangeNotify;
...
@@ -11,9 +11,9 @@ import emu.grasscutter.server.packet.send.PacketLifeStateChangeNotify;
import
java.util.List
;
import
java.util.List
;
@Command
(
label
=
"
fullhp
"
,
usage
=
"
fullhp|fhp
"
,
@Command
(
label
=
"
heal
"
,
usage
=
"
heal|h
"
,
description
=
"
Recover
all characters in your current team
to full health
."
,
aliases
=
{
"
fhp
"
},
permission
=
"player.
fullhp
"
)
description
=
"
Heal
all characters in your current team."
,
aliases
=
{
"
h
"
},
permission
=
"player.
heal
"
)
public
class
FullHp
Command
implements
CommandHandler
{
public
class
Heal
Command
implements
CommandHandler
{
@Override
@Override
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
if
(
sender
==
null
)
{
if
(
sender
==
null
)
{
...
@@ -31,6 +31,6 @@ public class FullHpCommand implements CommandHandler {
...
@@ -31,6 +31,6 @@ public class FullHpCommand implements CommandHandler {
entity
.
getWorld
().
broadcastPacket
(
new
PacketAvatarLifeStateChangeNotify
(
entity
.
getAvatar
()));
entity
.
getWorld
().
broadcastPacket
(
new
PacketAvatarLifeStateChangeNotify
(
entity
.
getAvatar
()));
}
}
});
});
CommandHandler
.
sendMessage
(
sender
,
"All
hp recover to full
."
);
CommandHandler
.
sendMessage
(
sender
,
"All
characters are healed
."
);
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment