Unstable 1.2.1.0
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user