Code formatiert

This commit is contained in:
Lennart Kampshoff
2019-12-21 14:03:06 +01:00
parent c5f72c2ce5
commit ed95acc24d
56 changed files with 1771 additions and 1764 deletions

View File

@@ -1951,7 +1951,7 @@ namespace ReallifeGamemode.Server.Commands
ChatService.SendMessage(player, "~m~Benutzung: ~s~/save schoolvehicle [FahrschuleID]");
return;
}
if(drivingSchoolId > 2 || drivingSchoolId < 0)
if (drivingSchoolId > 2 || drivingSchoolId < 0)
{
ChatService.SendMessage(player, "~m~Diese Fahrschule existiert nicht.");
return;
@@ -1965,13 +1965,13 @@ namespace ReallifeGamemode.Server.Commands
break;
case "location":
if(option1 == null || option1.Length < 0)
if (option1 == null || option1.Length < 0)
{
ChatService.SendMessage(player, "~m~Benutzung: ~s~/save location [Beschreibung]");
return;
}
using(var dbContext = new DatabaseContext())
using (var dbContext = new DatabaseContext())
{
dbContext.Locations.Add(new Location
{
@@ -2384,7 +2384,7 @@ namespace ReallifeGamemode.Server.Commands
return;
}
if(modifier < 0)
if (modifier < 0)
{
ChatService.ErrorMessage(player, "Es muss positives Adminspeed angegeben werden");
return;
@@ -2989,7 +2989,7 @@ namespace ReallifeGamemode.Server.Commands
BusinessBase business = BusinessManager.GetNearBusiness(player);
if(business == null)
if (business == null)
{
ChatService.ErrorMessage(player, "In deiner Nähe ist kein Business");
return;
@@ -2998,7 +2998,7 @@ namespace ReallifeGamemode.Server.Commands
switch (option.ToLower())
{
case "price":
if(!int.TryParse(option1, out int price))
if (!int.TryParse(option1, out int price))
{
ChatService.ErrorMessage(player, "Es muss ein gültiger Preis angegeben werden");
return;