Grasscutter/src/main/java/emu/grasscutter/command/commands/Restart.java

17 lines
468 B
Java
Raw Normal View History

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
2022-04-21 00:17:56 +08:00
public void execute(GenshinPlayer sender, List<String> args) {
sender.getSession().close();
}
}