RestartCommand.java 590 Bytes
Newer Older
KingRainbow44's avatar
KingRainbow44 committed
1
2
3
4
package emu.grasscutter.command.commands;

import emu.grasscutter.command.Command;
import emu.grasscutter.command.CommandHandler;
Melledy's avatar
Melledy committed
5
import emu.grasscutter.game.player.Player;
KingRainbow44's avatar
KingRainbow44 committed
6
7
8

import java.util.List;

9
10
import static emu.grasscutter.utils.Language.translate;

方块君's avatar
方块君 committed
11
@Command(label = "restart", usage = "restart", description = "commands.restart.description")
KingRainbow44's avatar
KingRainbow44 committed
12
13
14
public final class RestartCommand implements CommandHandler {

    @Override
AnimeGitB's avatar
AnimeGitB committed
15
    public void execute(Player sender, Player targetPlayer, List<String> args) {
AnimeGitB's avatar
AnimeGitB committed
16
17
18
		if (sender == null) {
			return;
		}
KingRainbow44's avatar
KingRainbow44 committed
19
20
21
        sender.getSession().close();
    }
}