RAGE Multiplayer 1.1.0-DP Update

/freeze was obselete and removed
/unfreeze was obselete and removed
/spectate was obselete and removed
This commit is contained in:
Siga
2020-02-24 21:18:54 +01:00
parent 0d5731fb11
commit edf06f4478
85 changed files with 804 additions and 643 deletions

View File

@@ -11,19 +11,19 @@ using System.Text;
namespace ReallifeGamemode.Services
{
public class ClientService
public class PlayerService
{
/// <summary>
/// Gibt einen Client anhand seines Namens oder der ID zurück
/// </summary>
/// <param name="nameOrId">Die ID oder der Name, nach dem gesucht werden soll</param>
/// <returns></returns>
public static Client GetClientByNameOrId(string nameOrId)
public static Player GetPlayerByNameOrId(string nameOrId)
{
Client toReturn = null;
Player toReturn = null;
nameOrId = nameOrId.ToLower();
List<Client> playerList = NAPI.Pools.GetAllPlayers();
List<Player> playerList = NAPI.Pools.GetAllPlayers();
if (int.TryParse(nameOrId, out int id))
{

View File

@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<Configurations>Debug;Release;ServerBuild</Configurations>
<PlatformTarget>x64</PlatformTarget>
<Platforms>AnyCPU;x64</Platforms>