fix for issue #50

This commit is contained in:
RaidMax
2018-09-16 17:51:11 -05:00
parent 4a46abc46d
commit 0f9d2e92e1
4 changed files with 21 additions and 31 deletions

View File

@ -591,7 +591,7 @@ namespace SharedLibraryCore.Commands
{
foreach (string line in OnlineAdmins(E.Owner).Split(Environment.NewLine))
{
var t = E.Message.IsBroadcastCommand() ? E.Owner.Broadcast(line) : E.Origin.Tell(line);
var t = E.Message.IsBroadcastCommand() ? E.Owner.Broadcast(line) : E.Origin.Tell(line);
await t;
await Task.Delay(FloodProtectionInterval);
@ -1370,11 +1370,7 @@ namespace SharedLibraryCore.Commands
// the current map is not in rotation
if (currentMap.Count() == 0)
{
nextMap = new Map()
{
// this happens if it's an unknown custom or DLC map
Alias = "Unknown"
};
return Utilities.CurrentLocalization.LocalizationIndex["COMMANDS_NEXTMAP_NOT_IN_ROTATION"];
}
// there's duplicate maps in rotation