hotfix weil luke dumm ist
This commit is contained in:
@@ -6,6 +6,7 @@ using Newtonsoft.Json;
|
||||
using ReallifeGamemode.Server.Services;
|
||||
using ReallifeGamemode.Database.Models;
|
||||
using ReallifeGamemode.Server.Core.Managers;
|
||||
using ReallifeGamemode.Server.Extensions;
|
||||
|
||||
namespace ReallifeGamemode.Server.Job
|
||||
{
|
||||
@@ -160,6 +161,7 @@ namespace ReallifeGamemode.Server.Job
|
||||
private void SrvEvent_PlayerDc(Player player)
|
||||
{
|
||||
if (!GetPlayerInJob().Contains(player)) return;
|
||||
if (player.GetUser().JobId != 2) return;
|
||||
foreach (var data in muellmanData)
|
||||
{
|
||||
if (data.getDataFromClient(player) == null) continue;
|
||||
@@ -181,6 +183,7 @@ namespace ReallifeGamemode.Server.Job
|
||||
private void SrvEvent_PlayerDeath(Player player)
|
||||
{
|
||||
if (!GetPlayerInJob().Contains(player)) return;
|
||||
if (player.GetUser().JobId != 2) return;
|
||||
foreach (var data in muellmanData)
|
||||
{
|
||||
if (data.getDataFromClient(player) == null) continue;
|
||||
@@ -222,6 +225,7 @@ namespace ReallifeGamemode.Server.Job
|
||||
{
|
||||
Player target;
|
||||
if (!GetPlayerInJob().Contains(player)) return;
|
||||
if (player.GetUser().JobId != 2) return;
|
||||
|
||||
if (vehicle.Model == (uint)Types.VehicleModel.Trash || vehicle.Model == (uint)Types.VehicleModel.Trash2)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user