Merge branch 'feature/tuning-system' into develop

This commit is contained in:
hydrant
2018-10-22 22:19:44 +02:00
6 changed files with 210 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ using GTANetworkAPI;
using Microsoft.EntityFrameworkCore;
using reallife_gamemode.Model;
using reallife_gamemode.Server.Entities;
using reallife_gamemode.Server.Managers;
/**
* @overview Life of German Reallife - Main Class (Main.cs)
@@ -26,6 +27,8 @@ namespace reallife_gamemode
NAPI.Server.SetAutoSpawnOnConnect(false);
NAPI.Server.SetAutoRespawnAfterDeath(false);
TuningManager.AddTuningGarage(new Vector3(-341, -134, 38.5), new Vector3(-334, -143, 41));
using (var context = new DatabaseContext())
{
context.Bans.FirstOrDefault();
@@ -35,5 +38,8 @@ namespace reallife_gamemode
context.SaveChanges();
}
}
[Command("dim")]
public void dim(Client player) => player.SendChatMessage(player.Dimension.ToString());
}
}