This commit is contained in:
hydrant
2021-05-09 01:52:05 +02:00
parent 50b4a5cccd
commit 39f4250595

View File

@@ -585,27 +585,6 @@ namespace ReallifeGamemode.Server.Commands
}
[Command("remspawnschutz", "~m~Benutzung: ~s~/rmss [Target]")]
public void CmdAdminRmss(Player player, String targetname)
{
if (!player.GetUser()?.IsAdmin(AdminLevel.ADMIN) ?? true)
{
ChatService.NotAuthorized(player);
return;
}
Player target = PlayerService.GetPlayerByNameOrId(targetname);
if (target == null || !target.IsLoggedIn())
{
ChatService.PlayerNotFound(player);
return;
}
target.TriggerEvent("abortSpawnschutz");
}
[Command("countdown", "~m~Benutzung: ~s~/countdown [Zeit] [Text]", GreedyArg = true)]
public void CmdAdminCountdown(Player player, string timer_string, string text)
{
@@ -3858,9 +3837,12 @@ namespace ReallifeGamemode.Server.Commands
string playedHoursString = "";
int jailTime = targetUser.JailTime;
if (user.IsAdmin(AdminLevel.HEADADMIN)) {
if (user.IsAdmin(AdminLevel.HEADADMIN))
{
playedHoursString = playedHours.ToString();
} else {
}
else
{
int newbiePlayedHoursThreshold = GlobalHelper.newbiePlayedMinutesThreshold / 60;
playedHoursString = playedHours > newbiePlayedHoursThreshold ? (newbiePlayedHoursThreshold + "+") : playedHours.ToString();
}