mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-23 03:37:38 +00:00
Add restart command
Signed-off-by: Jaida Wu <mlgmxyysd@meowcat.org>
This commit is contained in:
parent
00a746be3c
commit
54faab8f0d
16
src/main/java/emu/grasscutter/command/commands/Restart.java
Normal file
16
src/main/java/emu/grasscutter/command/commands/Restart.java
Normal file
@ -0,0 +1,16 @@
|
||||
package emu.grasscutter.command.commands;
|
||||
|
||||
import emu.grasscutter.command.Command;
|
||||
import emu.grasscutter.command.CommandHandler;
|
||||
import emu.grasscutter.game.GenshinPlayer;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Command(label = "restart", usage = "restart - Restarts the current session")
|
||||
public class Restart implements CommandHandler {
|
||||
|
||||
@Override
|
||||
public void onCommand(GenshinPlayer sender, List<String> args) {
|
||||
sender.getSession().close();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user