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
652a2154
Commit
652a2154
authored
Apr 20, 2022
by
KingRainbow44
Browse files
Magix sanity.
parent
f35f76f3
Changes
22
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/command/commands/Account.java
→
src/main/java/emu/grasscutter/command/commands/Account
Command
.java
View file @
652a2154
...
@@ -9,7 +9,7 @@ import java.util.List;
...
@@ -9,7 +9,7 @@ import java.util.List;
@Command
(
label
=
"account"
,
usage
=
"account <create|delete> <username> [uid]"
,
@Command
(
label
=
"account"
,
usage
=
"account <create|delete> <username> [uid]"
,
description
=
"Modify user accounts"
)
description
=
"Modify user accounts"
)
public
class
Account
implements
CommandHandler
{
public
final
class
Account
Command
implements
CommandHandler
{
@Override
@Override
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
...
...
src/main/java/emu/grasscutter/command/commands/Broadcast.java
→
src/main/java/emu/grasscutter/command/commands/Broadcast
Command
.java
View file @
652a2154
...
@@ -9,7 +9,7 @@ import java.util.List;
...
@@ -9,7 +9,7 @@ import java.util.List;
@Command
(
label
=
"broadcast"
,
usage
=
"broadcast <message>"
,
@Command
(
label
=
"broadcast"
,
usage
=
"broadcast <message>"
,
description
=
"Sends a message to all the players"
,
aliases
=
{
"b"
},
permission
=
"server.broadcast"
)
description
=
"Sends a message to all the players"
,
aliases
=
{
"b"
},
permission
=
"server.broadcast"
)
public
class
Broadcast
implements
CommandHandler
{
public
final
class
Broadcast
Command
implements
CommandHandler
{
@Override
@Override
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
...
...
src/main/java/emu/grasscutter/command/commands/ChangeScene.java
→
src/main/java/emu/grasscutter/command/commands/ChangeScene
Command
.java
View file @
652a2154
...
@@ -8,7 +8,7 @@ import java.util.List;
...
@@ -8,7 +8,7 @@ import java.util.List;
@Command
(
label
=
"changescene"
,
usage
=
"changescene <scene id>"
,
@Command
(
label
=
"changescene"
,
usage
=
"changescene <scene id>"
,
description
=
"Changes your scene"
,
aliases
=
{
"scene"
},
permission
=
"player.changescene"
)
description
=
"Changes your scene"
,
aliases
=
{
"scene"
},
permission
=
"player.changescene"
)
public
class
ChangeScene
implements
CommandHandler
{
public
final
class
ChangeScene
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
)
{
...
...
src/main/java/emu/grasscutter/command/commands/ClearArtifacts.java
→
src/main/java/emu/grasscutter/command/commands/ClearArtifacts
Command
.java
View file @
652a2154
...
@@ -11,7 +11,7 @@ import java.util.List;
...
@@ -11,7 +11,7 @@ import java.util.List;
@Command
(
label
=
"clearartifacts"
,
usage
=
"clearartifacts"
,
@Command
(
label
=
"clearartifacts"
,
usage
=
"clearartifacts"
,
description
=
"Deletes all unequipped and unlocked level 0 artifacts, including yellow rarity ones from your inventory"
,
description
=
"Deletes all unequipped and unlocked level 0 artifacts, including yellow rarity ones from your inventory"
,
aliases
=
{
"clearart"
},
permission
=
"player.clearartifacts"
)
aliases
=
{
"clearart"
},
permission
=
"player.clearartifacts"
)
public
class
ClearArtifacts
implements
CommandHandler
{
public
final
class
ClearArtifacts
Command
implements
CommandHandler
{
@Override
@Override
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
...
...
src/main/java/emu/grasscutter/command/commands/Drop.java
→
src/main/java/emu/grasscutter/command/commands/Drop
Command
.java
View file @
652a2154
...
@@ -12,7 +12,7 @@ import java.util.List;
...
@@ -12,7 +12,7 @@ import java.util.List;
@Command
(
label
=
"drop"
,
usage
=
"drop <itemId|itemName> [amount]"
,
@Command
(
label
=
"drop"
,
usage
=
"drop <itemId|itemName> [amount]"
,
description
=
"Drops an item near you"
,
aliases
=
{
"d"
,
"dropitem"
},
permission
=
"server.drop"
)
description
=
"Drops an item near you"
,
aliases
=
{
"d"
,
"dropitem"
},
permission
=
"server.drop"
)
public
class
Drop
implements
CommandHandler
{
public
final
class
Drop
Command
implements
CommandHandler
{
@Override
@Override
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
...
...
src/main/java/emu/grasscutter/command/commands/GiveChar.java
→
src/main/java/emu/grasscutter/command/commands/GiveChar
Command
.java
View file @
652a2154
...
@@ -12,7 +12,7 @@ import java.util.List;
...
@@ -12,7 +12,7 @@ import java.util.List;
@Command
(
label
=
"givechar"
,
usage
=
"givechar <playerId> <avatarId> [level]"
,
@Command
(
label
=
"givechar"
,
usage
=
"givechar <playerId> <avatarId> [level]"
,
description
=
"Gives the player a specified character"
,
aliases
=
{
"givec"
},
permission
=
"player.givechar"
)
description
=
"Gives the player a specified character"
,
aliases
=
{
"givec"
},
permission
=
"player.givechar"
)
public
class
GiveChar
implements
CommandHandler
{
public
final
class
GiveChar
Command
implements
CommandHandler
{
@Override
@Override
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
...
...
src/main/java/emu/grasscutter/command/commands/Give.java
→
src/main/java/emu/grasscutter/command/commands/Give
Command
.java
View file @
652a2154
...
@@ -15,7 +15,7 @@ import java.util.List;
...
@@ -15,7 +15,7 @@ import java.util.List;
@Command
(
label
=
"give"
,
usage
=
"give [player] <itemId|itemName> [amount]"
,
@Command
(
label
=
"give"
,
usage
=
"give [player] <itemId|itemName> [amount]"
,
description
=
"Gives an item to you or the specified player"
,
aliases
=
{
"g"
,
"item"
,
"giveitem"
},
permission
=
"player.give"
)
description
=
"Gives an item to you or the specified player"
,
aliases
=
{
"g"
,
"item"
,
"giveitem"
},
permission
=
"player.give"
)
public
class
Give
implements
CommandHandler
{
public
final
class
Give
Command
implements
CommandHandler
{
@Override
@Override
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
...
...
src/main/java/emu/grasscutter/command/commands/GodMode.java
→
src/main/java/emu/grasscutter/command/commands/GodMode
Command
.java
View file @
652a2154
...
@@ -8,7 +8,7 @@ import java.util.List;
...
@@ -8,7 +8,7 @@ import java.util.List;
@Command
(
label
=
"godmode"
,
usage
=
"godmode [playerId]"
,
@Command
(
label
=
"godmode"
,
usage
=
"godmode [playerId]"
,
description
=
"Prevents you from taking damage"
,
permission
=
"player.godmode"
)
description
=
"Prevents you from taking damage"
,
permission
=
"player.godmode"
)
public
class
GodMode
implements
CommandHandler
{
public
final
class
GodMode
Command
implements
CommandHandler
{
@Override
@Override
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
...
...
src/main/java/emu/grasscutter/command/commands/Help.java
→
src/main/java/emu/grasscutter/command/commands/Help
Command
.java
View file @
652a2154
...
@@ -9,7 +9,7 @@ import java.util.*;
...
@@ -9,7 +9,7 @@ import java.util.*;
@Command
(
label
=
"help"
,
usage
=
"help [command]"
,
@Command
(
label
=
"help"
,
usage
=
"help [command]"
,
description
=
"Sends the help message or shows information about a specified command"
)
description
=
"Sends the help message or shows information about a specified command"
)
public
class
Help
implements
CommandHandler
{
public
final
class
Help
Command
implements
CommandHandler
{
@Override
@Override
public
void
execute
(
GenshinPlayer
player
,
List
<
String
>
args
)
{
public
void
execute
(
GenshinPlayer
player
,
List
<
String
>
args
)
{
...
...
src/main/java/emu/grasscutter/command/commands/Kick.java
→
src/main/java/emu/grasscutter/command/commands/Kick
Command
.java
View file @
652a2154
...
@@ -9,7 +9,7 @@ import java.util.List;
...
@@ -9,7 +9,7 @@ import java.util.List;
@Command
(
label
=
"kick"
,
usage
=
"kick <player>"
,
@Command
(
label
=
"kick"
,
usage
=
"kick <player>"
,
description
=
"Kicks the specified player from the server (WIP)"
,
permission
=
"server.kick"
)
description
=
"Kicks the specified player from the server (WIP)"
,
permission
=
"server.kick"
)
public
class
Kick
implements
CommandHandler
{
public
final
class
Kick
Command
implements
CommandHandler
{
@Override
@Override
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
...
...
src/main/java/emu/grasscutter/command/commands/KillAll.java
→
src/main/java/emu/grasscutter/command/commands/KillAll
Command
.java
View file @
652a2154
...
@@ -11,7 +11,7 @@ import java.util.List;
...
@@ -11,7 +11,7 @@ import java.util.List;
@Command
(
label
=
"killall"
,
usage
=
"killall [playerUid] [sceneId]"
,
@Command
(
label
=
"killall"
,
usage
=
"killall [playerUid] [sceneId]"
,
description
=
"Kill all entities"
,
permission
=
"server.killall"
)
description
=
"Kill all entities"
,
permission
=
"server.killall"
)
public
class
KillAll
implements
CommandHandler
{
public
final
class
KillAll
Command
implements
CommandHandler
{
@Override
@Override
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
...
...
src/main/java/emu/grasscutter/command/commands/Permission.java
→
src/main/java/emu/grasscutter/command/commands/Permission
Command
.java
View file @
652a2154
...
@@ -10,7 +10,7 @@ import java.util.List;
...
@@ -10,7 +10,7 @@ import java.util.List;
@Command
(
label
=
"permission"
,
usage
=
"permission <add|remove> <username> <permission>"
,
@Command
(
label
=
"permission"
,
usage
=
"permission <add|remove> <username> <permission>"
,
description
=
"Grants or removes a permission for a user"
,
permission
=
"*"
)
description
=
"Grants or removes a permission for a user"
,
permission
=
"*"
)
public
class
Permission
implements
CommandHandler
{
public
final
class
Permission
Command
implements
CommandHandler
{
@Override
@Override
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
...
...
src/main/java/emu/grasscutter/command/commands/Pos.java
→
src/main/java/emu/grasscutter/command/commands/Pos
itionCommand
.java
View file @
652a2154
...
@@ -6,9 +6,9 @@ import emu.grasscutter.game.GenshinPlayer;
...
@@ -6,9 +6,9 @@ import emu.grasscutter.game.GenshinPlayer;
import
java.util.List
;
import
java.util.List
;
@Command
(
label
=
"pos"
,
usage
=
"pos
"
,
@Command
(
label
=
"pos
ition
"
,
usage
=
"pos
ition"
,
aliases
=
{
"pos"
},
description
=
"Get coordinates."
)
description
=
"Get coordinates."
)
public
class
Pos
implements
CommandHandler
{
public
final
class
Pos
itionCommand
implements
CommandHandler
{
@Override
@Override
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
...
...
src/main/java/emu/grasscutter/command/commands/Reload.java
→
src/main/java/emu/grasscutter/command/commands/Reload
Command
.java
View file @
652a2154
...
@@ -9,7 +9,7 @@ import java.util.List;
...
@@ -9,7 +9,7 @@ import java.util.List;
@Command
(
label
=
"reload"
,
usage
=
"reload"
,
@Command
(
label
=
"reload"
,
usage
=
"reload"
,
description
=
"Reload server config"
,
permission
=
"server.reload"
)
description
=
"Reload server config"
,
permission
=
"server.reload"
)
public
class
Reload
implements
CommandHandler
{
public
final
class
Reload
Command
implements
CommandHandler
{
@Override
@Override
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
...
...
src/main/java/emu/grasscutter/command/commands/ResetConst.java
→
src/main/java/emu/grasscutter/command/commands/ResetConst
Command
.java
View file @
652a2154
...
@@ -11,7 +11,7 @@ import java.util.List;
...
@@ -11,7 +11,7 @@ import java.util.List;
@Command
(
label
=
"resetconst"
,
usage
=
"resetconst [all]"
,
@Command
(
label
=
"resetconst"
,
usage
=
"resetconst [all]"
,
description
=
"Resets the constellation level on your current active character, will need to relog after using the command to see any changes."
,
description
=
"Resets the constellation level on your current active character, will need to relog after using the command to see any changes."
,
aliases
=
{
"resetconstellation"
},
permission
=
"player.resetconstellation"
)
aliases
=
{
"resetconstellation"
},
permission
=
"player.resetconstellation"
)
public
class
ResetConst
implements
CommandHandler
{
public
final
class
ResetConst
Command
implements
CommandHandler
{
@Override
@Override
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
...
...
src/main/java/emu/grasscutter/command/commands/Restart.java
→
src/main/java/emu/grasscutter/command/commands/Restart
Command
.java
View file @
652a2154
...
@@ -7,7 +7,7 @@ import emu.grasscutter.game.GenshinPlayer;
...
@@ -7,7 +7,7 @@ import emu.grasscutter.game.GenshinPlayer;
import
java.util.List
;
import
java.util.List
;
@Command
(
label
=
"restart"
,
usage
=
"restart - Restarts the current session"
)
@Command
(
label
=
"restart"
,
usage
=
"restart - Restarts the current session"
)
public
class
Restart
implements
CommandHandler
{
public
final
class
Restart
Command
implements
CommandHandler
{
@Override
@Override
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
...
...
src/main/java/emu/grasscutter/command/commands/SendMessage.java
→
src/main/java/emu/grasscutter/command/commands/SendMessage
Command
.java
View file @
652a2154
...
@@ -9,7 +9,7 @@ import java.util.List;
...
@@ -9,7 +9,7 @@ import java.util.List;
@Command
(
label
=
"say"
,
usage
=
"say <player> <message>"
,
description
=
"Sends a message to a player as the server"
,
@Command
(
label
=
"say"
,
usage
=
"say <player> <message>"
,
description
=
"Sends a message to a player as the server"
,
aliases
=
{
"sendservmsg"
,
"sendservermessage"
,
"sendmessage"
},
permission
=
"server.sendmessage"
)
aliases
=
{
"sendservmsg"
,
"sendservermessage"
,
"sendmessage"
},
permission
=
"server.sendmessage"
)
public
class
SendMessage
implements
CommandHandler
{
public
final
class
SendMessage
Command
implements
CommandHandler
{
@Override
@Override
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
...
...
src/main/java/emu/grasscutter/command/commands/SetStats.java
→
src/main/java/emu/grasscutter/command/commands/SetStats
Command
.java
View file @
652a2154
...
@@ -11,7 +11,7 @@ import java.util.List;
...
@@ -11,7 +11,7 @@ import java.util.List;
@Command
(
label
=
"setstats"
,
usage
=
"setstats <hp|def|atk|em|er|crate|cdmg> <value>"
,
@Command
(
label
=
"setstats"
,
usage
=
"setstats <hp|def|atk|em|er|crate|cdmg> <value>"
,
aliases
=
{
"stats"
})
aliases
=
{
"stats"
})
public
class
SetStats
implements
CommandHandler
{
public
final
class
SetStats
Command
implements
CommandHandler
{
@Override
@Override
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
...
...
src/main/java/emu/grasscutter/command/commands/SetWorldLevel.java
→
src/main/java/emu/grasscutter/command/commands/SetWorldLevel
Command
.java
View file @
652a2154
...
@@ -10,7 +10,7 @@ import java.util.List;
...
@@ -10,7 +10,7 @@ import java.util.List;
@Command
(
label
=
"setworldlevel"
,
usage
=
"setworldlevel <level>"
,
@Command
(
label
=
"setworldlevel"
,
usage
=
"setworldlevel <level>"
,
description
=
"Sets your world level (Relog to see proper effects)"
,
description
=
"Sets your world level (Relog to see proper effects)"
,
aliases
=
{
"setworldlvl"
},
permission
=
"player.setworldlevel"
)
aliases
=
{
"setworldlvl"
},
permission
=
"player.setworldlevel"
)
public
class
SetWorldLevel
implements
CommandHandler
{
public
final
class
SetWorldLevel
Command
implements
CommandHandler
{
@Override
@Override
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
...
...
src/main/java/emu/grasscutter/command/commands/Spawn.java
→
src/main/java/emu/grasscutter/command/commands/Spawn
Command
.java
View file @
652a2154
...
@@ -12,7 +12,7 @@ import java.util.List;
...
@@ -12,7 +12,7 @@ import java.util.List;
@Command
(
label
=
"spawn"
,
usage
=
"spawn <entityId|entityName> [level] [amount]"
,
@Command
(
label
=
"spawn"
,
usage
=
"spawn <entityId|entityName> [level] [amount]"
,
description
=
"Spawns an entity near you"
,
permission
=
"server.spawn"
)
description
=
"Spawns an entity near you"
,
permission
=
"server.spawn"
)
public
class
Spawn
implements
CommandHandler
{
public
final
class
Spawn
Command
implements
CommandHandler
{
@Override
@Override
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
public
void
execute
(
GenshinPlayer
sender
,
List
<
String
>
args
)
{
...
...
Prev
1
2
Next
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