CommandHandler.sendMessage(sender,"Player not found.");
return;
}
if(sender!=null){
CommandHandler.sendMessage(sender,String.format("Player [%s:%s] has kicked player [%s:%s]",sender.getAccount().getPlayerId(),sender.getAccount().getUsername(),target,targetPlayer.getAccount().getUsername()));
}
CommandHandler.sendMessage(sender,String.format("Kicking player [%s:%s]",target,targetPlayer.getAccount().getUsername()));
targetPlayer.getSession().close();
}
}
packageemu.grasscutter.command.commands;
importemu.grasscutter.Grasscutter;
importemu.grasscutter.command.Command;
importemu.grasscutter.command.CommandHandler;
importemu.grasscutter.game.GenshinPlayer;
importjava.util.List;
@Command(label="kick",usage="kick <player>",
description="Kicks the specified player from the server (WIP)",permission="server.kick")
CommandHandler.sendMessage(sender,"Player not found.");
return;
}
if(sender!=null){
CommandHandler.sendMessage(sender,String.format("Player [%s:%s] has kicked player [%s:%s]",sender.getAccount().getPlayerId(),sender.getAccount().getUsername(),target,targetPlayer.getAccount().getUsername()));
}
CommandHandler.sendMessage(sender,String.format("Kicking player [%s:%s]",target,targetPlayer.getAccount().getUsername()));