fix rmss
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user