From 2c42aa6123f519c67542ed378346c851ae57849f Mon Sep 17 00:00:00 2001 From: Luke Date: Sat, 8 May 2021 00:39:18 +0200 Subject: [PATCH] newbiePlayedMinutesThreshold auch bei checkstats --- ReallifeGamemode.Server/Commands/AdminCommands.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ReallifeGamemode.Server/Commands/AdminCommands.cs b/ReallifeGamemode.Server/Commands/AdminCommands.cs index 45398cc3..011fcf67 100644 --- a/ReallifeGamemode.Server/Commands/AdminCommands.cs +++ b/ReallifeGamemode.Server/Commands/AdminCommands.cs @@ -3829,7 +3829,8 @@ namespace ReallifeGamemode.Server.Commands if (user.IsAdmin(AdminLevel.HEADADMIN)) { playedHoursString = playedHours.ToString(); } else { - playedHoursString = playedHours > 30 ? "30+" : playedHours.ToString(); + int newbiePlayedHoursThreshold = GlobalHelper.newbiePlayedMinutesThreshold / 60; + playedHoursString = playedHours > newbiePlayedHoursThreshold ? (newbiePlayedHoursThreshold + "+") : playedHours.ToString(); } ChatService.SendMessage(player, $"Statistiken von {target.Name} - HandMoney: {handmoney.ToMoneyString()}, BankMoney: {bankmoney.ToMoneyString()}, DriverLicense: {driverLicense.ToString()}, BikeLicense: {bikeLicense.ToString()}, FlyingLicense: {flyingLicense.ToString()}, WeaponLicense: {weaponLicense.ToString()}, playedHours: {playedHoursString}, JailTime: {jailTime.ToString()}");