public LobbyCommands(IPlayerCommandHandler handler, Config cfg) { _cfg = cfg; handler.AddCommand(new PlayerCommand(MapInvoked, "/map", "sets the map.", 1, 1)); handler.AddCommand(new PlayerCommand(PlayersInvoked, "/players", "sets the number of players.", 1, 1)); handler.AddCommand(new PlayerCommand(ImpostorsInvoked, "/impostors", "sets the number of impostors.", 1, 1)); }
public PingPongHandler( IDashboardCommandHandler dashboardCommandHandler, IPlayerCommandHandler playerCommandHandler) { dashboardCommandHandler.AddCommand(new DashboardCommand(HandlePingDashboard, "/ping", "test", 1, 0)); playerCommandHandler.AddCommand(new PlayerCommand(HandlePingPlayer, "/ping", "test", 1, 0)); }