v1.2.6.0 (Winter Update)

This commit is contained in:
Regalis11
2023-12-14 16:11:27 +02:00
parent af8cc89fce
commit b91e85559d
375 changed files with 7771 additions and 2874 deletions
@@ -1,5 +1,4 @@
using Barotrauma.Extensions;
using Barotrauma.Networking;
using Barotrauma.Networking;
namespace Barotrauma
{
@@ -27,6 +26,15 @@ namespace Barotrauma
AnyOneAllowedToManageCampaign(permissions);
}
public static bool AllowImmediateItemDelivery(Client client)
{
if (client == null || GameMain.Server == null) { return false; }
return
GameMain.Server.ServerSettings.AllowImmediateItemDelivery ||
client.HasPermission(ClientPermissions.ManageCampaign) ||
client.Connection == GameMain.Server.OwnerConnection;
}
public static bool AllowedToManageWallets(Client client)
{
return AllowedToManageCampaign(client, ClientPermissions.ManageMoney);