This commit is contained in:
Evil Factory
2021-07-19 00:12:41 -03:00
parent a241512857
commit 8a8018509d
2 changed files with 7 additions and 1 deletions

View File

@@ -52,6 +52,11 @@ namespace Barotrauma
character.TeamID = (CharacterTeamType)team;
}
public static void SetClientTeam(Client character, int team)
{
character.TeamID = (CharacterTeamType)team;
}
public static void Kick(Client client, string reason = "")
{
GameMain.Server.KickClient(client.Connection, reason);

View File

@@ -2643,7 +2643,8 @@ namespace Barotrauma
}
logPropertyChangeCoroutine = CoroutineManager.InvokeAfter(() =>
{
GameServer.Log($"{sender.Character.Name} set the value \"{property.Name}\" of the item \"{Name}\" to \"{logValue}\".", ServerLog.MessageType.ItemInteraction);
if(sender.Character != null)
GameServer.Log($"{sender.Character.Name} set the value \"{property.Name}\" of the item \"{Name}\" to \"{logValue}\".", ServerLog.MessageType.ItemInteraction);
}, delay: 1.0f);
}
#endif