public static async Task UnstuckPlayer(string playerName, UnstuckLocation location) { string loc; if (location == UnstuckLocation.Graveyard) { loc = "graveyard"; } else if (location == UnstuckLocation.Inn) { loc = "inn"; } else if (location == UnstuckLocation.StartZone) { loc = "startzone"; } else { loc = String.Empty; } if (_tcm.Online) { await GetClient().SendMessage(TCCommand.UnstuckPlayer.BuildCommand(playerName, loc)); } else { throw new ServerOfflineException(); } }
public static async Task UnstuckPlayer(string playerName, UnstuckLocation location) { string loc; if (location == UnstuckLocation.Graveyard) loc = "graveyard"; else if (location == UnstuckLocation.Inn) loc = "inn"; else if (location == UnstuckLocation.StartZone) loc = "startzone"; else loc = String.Empty; if (_tcm.Online) await GetClient().SendMessage(TCCommand.UnstuckPlayer.BuildCommand(playerName, loc)); else throw new ServerOfflineException(); }