adds two day ban to drop down on for issue #47
This commit is contained in:
parent
98adfb12d2
commit
7c708f06f3
@ -3,7 +3,7 @@
|
|||||||
### Version 2.2
|
### Version 2.2
|
||||||
_______
|
_______
|
||||||
### About
|
### About
|
||||||
**IW4MAdmin** is an administration tool for [IW4x](https://iw4xcachep26muba.onion.link/), [Pluto T6](https://forum.plutonium.pw/category/33/plutonium-t6), [Pluto IW5](https://forum.plutonium.pw/category/5/plutonium-iw5), and most Call of Duty® dedicated servers. It allows complete control of your server; from changing maps, to banning players, **IW4MAdmin** monitors and records activity on your server(s). With plugin support, extending its functionality is a breeze.
|
**IW4MAdmin** is an administration tool for [IW4x](https://iw4xcachep26muba.onion.link/), [Pluto T6](https://forum.plutonium.pw/category/33/plutonium-t6), ~~[Pluto IW5](https://forum.plutonium.pw/category/5/plutonium-iw5)~~, and most Call of Duty® dedicated servers. It allows complete control of your server; from changing maps, to banning players, **IW4MAdmin** monitors and records activity on your server(s). With plugin support, extending its functionality is a breeze.
|
||||||
### Download
|
### Download
|
||||||
Latest binary builds are always available at https://raidmax.org/IW4MAdmin
|
Latest binary builds are always available at https://raidmax.org/IW4MAdmin
|
||||||
|
|
||||||
|
@ -29,8 +29,7 @@ namespace SharedLibraryCore.Localization
|
|||||||
{
|
{
|
||||||
if (!Set.TryGetValue(key, out string value))
|
if (!Set.TryGetValue(key, out string value))
|
||||||
{
|
{
|
||||||
// throw new Exception($"Invalid locale key {key}");
|
return key;
|
||||||
return $"unknown locale key {key}";
|
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -34,8 +34,9 @@ namespace WebfrontCore.Controllers
|
|||||||
{"1", $"1 {Localization["GLOBAL_TIME_HOUR"]}" },
|
{"1", $"1 {Localization["GLOBAL_TIME_HOUR"]}" },
|
||||||
{"2", $"6 {Localization["GLOBAL_TIME_HOURS"]}" },
|
{"2", $"6 {Localization["GLOBAL_TIME_HOURS"]}" },
|
||||||
{"3", $"1 {Localization["GLOBAL_TIME_DAY"]}" },
|
{"3", $"1 {Localization["GLOBAL_TIME_DAY"]}" },
|
||||||
{"4", $"1 {Localization["GLOBAL_TIME_WEEK"]}" },
|
{"4", $"2 {Localization["GLOBAL_TIME_DAYS"]}" },
|
||||||
{"5", $"{Localization["WEBFRONT_ACTION_SELECTION_PERMANENT"]}" },
|
{"5", $"1 {Localization["GLOBAL_TIME_WEEK"]}" },
|
||||||
|
{"6", $"{Localization["WEBFRONT_ACTION_SELECTION_PERMANENT"]}" },
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -61,11 +62,14 @@ namespace WebfrontCore.Controllers
|
|||||||
duration = "1d";
|
duration = "1d";
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
|
duration = "2d";
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
duration = "1w";
|
duration = "1w";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
string command = Duration == 5 ?
|
string command = Duration == 6 ?
|
||||||
$"!ban @{targetId} {Reason}" :
|
$"!ban @{targetId} {Reason}" :
|
||||||
$"!tempban @{targetId} {duration} {Reason}";
|
$"!tempban @{targetId} {duration} {Reason}";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user