Add restart command

Signed-off-by: Jaida Wu <mlgmxyysd@meowcat.org>
This commit is contained in:
Jaida Wu 2022-04-20 21:06:59 +08:00
parent 00a746be3c
commit 54faab8f0d

View 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();
}
}