fixes
This commit is contained in:
@@ -52,6 +52,11 @@ namespace Barotrauma
|
|||||||
character.TeamID = (CharacterTeamType)team;
|
character.TeamID = (CharacterTeamType)team;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void SetClientTeam(Client character, int team)
|
||||||
|
{
|
||||||
|
character.TeamID = (CharacterTeamType)team;
|
||||||
|
}
|
||||||
|
|
||||||
public static void Kick(Client client, string reason = "")
|
public static void Kick(Client client, string reason = "")
|
||||||
{
|
{
|
||||||
GameMain.Server.KickClient(client.Connection, reason);
|
GameMain.Server.KickClient(client.Connection, reason);
|
||||||
|
|||||||
@@ -2643,7 +2643,8 @@ namespace Barotrauma
|
|||||||
}
|
}
|
||||||
logPropertyChangeCoroutine = CoroutineManager.InvokeAfter(() =>
|
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);
|
}, delay: 1.0f);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user