überflüssiges arg bei error-notification raus

This commit is contained in:
Luke
2021-07-05 11:36:27 +02:00
parent cb649927a2
commit a121658a65
3 changed files with 10 additions and 10 deletions

View File

@@ -38,7 +38,7 @@ namespace ReallifeGamemode.Server.Events
return;
}
player.StopAnimation();
NotificationService.SendErrorNotification(player, "Du darfst dieses Fahrzeug nicht benutzen!", true);
NotificationService.SendErrorNotification(player, "Du darfst dieses Fahrzeug nicht benutzen!");
return;
}
}
@@ -47,7 +47,7 @@ namespace ReallifeGamemode.Server.Events
if (jveh.JobId != player.GetUser().JobId && !(u.IsAdmin(AdminLevel.HEADADMIN) && player.IsAdminDuty()))
{
player.StopAnimation();
NotificationService.SendErrorNotification(player, "Du darfst dieses Fahrzeug nicht benutzen!", true);
NotificationService.SendErrorNotification(player, "Du darfst dieses Fahrzeug nicht benutzen!");
return;
}
else if (u.IsAdmin(AdminLevel.HEADADMIN) && player.IsAdminDuty())
@@ -90,13 +90,13 @@ namespace ReallifeGamemode.Server.Events
if (!player.HasData("ActiveSchool") && !(u.IsAdmin(AdminLevel.HEADADMIN) && player.IsAdminDuty()))
{
player.StopAnimation();
NotificationService.SendErrorNotification(player, "Du darfst dieses Fahrzeug nicht benutzen!", true);
NotificationService.SendErrorNotification(player, "Du darfst dieses Fahrzeug nicht benutzen!");
return;
}
if (sVeh.SchoolId != player.GetData<int>("ActiveSchool"))
{
player.StopAnimation();
NotificationService.SendErrorNotification(player, "Du darfst dieses Fahrzeug nicht benutzen!", true);
NotificationService.SendErrorNotification(player, "Du darfst dieses Fahrzeug nicht benutzen!");
return;
}
}
@@ -107,7 +107,7 @@ namespace ReallifeGamemode.Server.Events
if (player.GetUser().PlayedMinutes > 1800)
{
player.StopAnimation();
NotificationService.SendErrorNotification(player, "Du hast schon über 30 Spielstunden!", true);
NotificationService.SendErrorNotification(player, "Du hast schon über 30 Spielstunden!");
return;
}
}
@@ -122,13 +122,13 @@ namespace ReallifeGamemode.Server.Events
if (player.GetUser().PlayedMinutes > 1800)
{
player.StopAnimation();
NotificationService.SendErrorNotification(player, "Du hast schon über 30 Spielstunden!", true);
NotificationService.SendErrorNotification(player, "Du hast schon über 30 Spielstunden!");
return;
}
if (player.GetData<bool>("HatNoobSpawnVehicle") == true)
{
player.StopAnimation();
NotificationService.SendErrorNotification(player, "Du hast bereits einen Roller!", true);
NotificationService.SendErrorNotification(player, "Du hast bereits einen Roller!");
return;
}
else
@@ -224,7 +224,7 @@ namespace ReallifeGamemode.Server.Events
if (player.GetUser().PlayedMinutes > 1800)
{
player.StopAnimation();
NotificationService.SendErrorNotification(player, "Du hast schon über 30 Spielstunden!", true);
NotificationService.SendErrorNotification(player, "Du hast schon über 30 Spielstunden!");
return;
}
else