FIx bugs
This commit is contained in:
@@ -36,5 +36,7 @@
|
|||||||
<HintPath>..\..\bridge\runtime\Bootstrapper.dll</HintPath>
|
<HintPath>..\..\bridge\runtime\Bootstrapper.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(ConfigurationName)' != 'ServerBuild'">
|
||||||
|
<Exec Command="powershell.exe .\Scripts\moveItems.ps1 -outDir $(OutDir) -outFile $(TargetFileName)" />
|
||||||
|
</Target>
|
||||||
</Project>
|
</Project>
|
||||||
@@ -151,7 +151,7 @@ namespace ReallifeGamemode.Server.Wanted
|
|||||||
foreach (var player in NAPI.Pools.GetAllPlayers())
|
foreach (var player in NAPI.Pools.GetAllPlayers())
|
||||||
{
|
{
|
||||||
User user = player.GetUser();
|
User user = player.GetUser();
|
||||||
if (Jailtime.ContainsKey(user.Id))
|
if (user != null && Jailtime.ContainsKey(user.Id))
|
||||||
{
|
{
|
||||||
|
|
||||||
if (user.JailTime <= 0)
|
if (user.JailTime <= 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user