From d39d4c8297a76fb3b7f6469ffd634ce3961ee3af Mon Sep 17 00:00:00 2001 From: Evil Factory <36804725+evilfactory@users.noreply.github.com> Date: Thu, 23 Dec 2021 15:33:38 -0300 Subject: [PATCH] added clientList.hasCrown --- .../BarotraumaServer/ServerSource/Networking/GameServer.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Barotrauma/BarotraumaServer/ServerSource/Networking/GameServer.cs b/Barotrauma/BarotraumaServer/ServerSource/Networking/GameServer.cs index 59141344e..3502069f4 100644 --- a/Barotrauma/BarotraumaServer/ServerSource/Networking/GameServer.cs +++ b/Barotrauma/BarotraumaServer/ServerSource/Networking/GameServer.cs @@ -1827,7 +1827,8 @@ namespace Barotrauma.Networking outmsg.Write(client.InGame); var result = new LuaResult(GameMain.Lua.hook.Call("clientList.hasPermission", c, client)); outmsg.Write(result.IsNull() ? client.Permissions != ClientPermissions.None : result.Bool()); - outmsg.Write(client.Connection == OwnerConnection); + var result2 = new LuaResult(GameMain.Lua.hook.Call("clientList.hasCrown", c, client)); + outmsg.Write(result2.IsNull() ? client.Connection == OwnerConnection : result2.Bool()); outmsg.Write(client.Connection != OwnerConnection && !client.HasPermission(ClientPermissions.Ban) && !client.HasPermission(ClientPermissions.Kick) &&