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:
@@ -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))
|
||||
{
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user