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

View File

@@ -1044,7 +1044,7 @@ namespace ReallifeGamemode.Server.Events
if (NAPI.Entity.GetEntityVelocity(v).Length() > 1 && v.Class != 16) if (NAPI.Entity.GetEntityVelocity(v).Length() > 1 && v.Class != 16)
{ {
NotificationService.SendErrorNotification(player, "Der Motor kann nur im Stand betätigt werden", true); NotificationService.SendErrorNotification(player, "Der Motor kann nur im Stand betätigt werden");
return; return;
} }

View File

@@ -31,7 +31,7 @@ namespace ReallifeGamemode.Server.Events
if (NAPI.Entity.GetEntityVelocity(v).Length() > 1 && v.Class != 16) if (NAPI.Entity.GetEntityVelocity(v).Length() > 1 && v.Class != 16)
{ {
NotificationService.SendErrorNotification(player, "Der Motor kann nur im Stand betätigt werden", true); NotificationService.SendErrorNotification(player, "Der Motor kann nur im Stand betätigt werden");
return; return;
} }