This commit is contained in:
hydrant
2019-07-27 22:51:27 +02:00
parent dfeee7d7e9
commit a511b09cdf
2 changed files with 4 additions and 2 deletions

View File

@@ -36,5 +36,7 @@
<HintPath>..\..\bridge\runtime\Bootstrapper.dll</HintPath>
</Reference>
</ItemGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(ConfigurationName)' != 'ServerBuild'">
<Exec Command="powershell.exe .\Scripts\moveItems.ps1 -outDir $(OutDir) -outFile $(TargetFileName)" />
</Target>
</Project>

View File

@@ -151,7 +151,7 @@ namespace ReallifeGamemode.Server.Wanted
foreach (var player in NAPI.Pools.GetAllPlayers())
{
User user = player.GetUser();
if (Jailtime.ContainsKey(user.Id))
if (user != null && Jailtime.ContainsKey(user.Id))
{
if (user.JailTime <= 0)