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
dfc956a1
Commit
dfc956a1
authored
3 years ago
by
Benjamin Elsdon
Browse files
Options
Downloads
Patches
Plain Diff
Modified the new commands to be compliant with my changes
parent
6e14dda8
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/emu/grasscutter/commands/PlayerCommands.java
+5
-3
5 additions, 3 deletions
src/main/java/emu/grasscutter/commands/PlayerCommands.java
with
5 additions
and
3 deletions
src/main/java/emu/grasscutter/commands/PlayerCommands.java
+
5
−
3
View file @
dfc956a1
...
@@ -180,7 +180,8 @@ public final class PlayerCommands {
...
@@ -180,7 +180,8 @@ public final class PlayerCommands {
}
}
}
}
@Command
(
label
=
"givechar"
,
aliases
=
{
"givec"
},
usage
=
"Usage: givechar <playerId> <avatarId> [level]"
)
@Command
(
label
=
"givechar"
,
aliases
=
{
"givec"
},
usage
=
"givechar <playerId> <avatarId> [level]"
,
description
=
"Gives the player a specified character"
,
permission
=
"player.givechar"
)
public
static
class
GiveCharCommand
implements
CommandHandler
{
public
static
class
GiveCharCommand
implements
CommandHandler
{
@Override
public
void
execute
(
GenshinPlayer
player
,
List
<
String
>
args
)
{
@Override
public
void
execute
(
GenshinPlayer
player
,
List
<
String
>
args
)
{
int
target
,
avatarID
,
level
=
1
,
ascension
=
1
;
int
target
,
avatarID
,
level
=
1
,
ascension
=
1
;
...
@@ -435,8 +436,9 @@ public final class PlayerCommands {
...
@@ -435,8 +436,9 @@ public final class PlayerCommands {
}
}
}
}
@Command
(
label
=
"setworldlevel"
,
aliases
=
{
"setworldlvl"
},
@Command
(
label
=
"setworldlevel"
,
aliases
=
{
"setworldlvl"
},
usage
=
"setworldlevel <level>"
,
usage
=
"Usage: setworldlevel <level>"
,
execution
=
Command
.
Execution
.
PLAYER
)
description
=
"Sets your world level (Relog to see proper effects)"
,
permission
=
"player.setworldlevel"
,
execution
=
Command
.
Execution
.
PLAYER
)
public
static
class
SetWorldLevelCommand
implements
CommandHandler
{
public
static
class
SetWorldLevelCommand
implements
CommandHandler
{
@Override
@Override
public
void
execute
(
GenshinPlayer
player
,
List
<
String
>
args
)
{
public
void
execute
(
GenshinPlayer
player
,
List
<
String
>
args
)
{
...
...
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