Feature request: option to disable Bradley lockouts during wipe day event (roaming Bradleys)

As the title states :)

We have a 90 minute Bradley lockout to limit one team from hugging it too much; but it would be nice if this could be disabled for wipe day event Bradleys (while still keeping the crate lock) - or just entirely during the wipe day event.

hi, you could grant the lootdefender.bypass.lockouts permission during this period, and revoke it when your event is over

That makes sense, but that would be a time sensitive manual action during every wipe. I'll see if I can find a plugin that can schedule permission changes based on wipe progress..

if you have a plugin that you load with your event then you can use

OnServerInitialized() or Init() to grant the perm
Unload() to revoke the perm

and this way the perm is only available when that plugin is loaded

Oh no, it's not a plugin - I mean the vanilla rust end-of-wipe event (Bradleys spawning on the roads)

is that the F15 event? I don't play so I am not familiar.

this should work though.

        private void OnEventTrigger(TriggeredEventPrefab prefab)
        {
            if (prefab.name == "assets/bundled/prefabs/world/event_f15e.prefab")
            {
                Puts("F15 event has started, granting lootdefender.bypass.lockouts to default group!");
                permission.GrantGroupPermission("default", "lootdefender.bypass.lockouts", plugins.Find("LootDefender"));
            }
        }

        private void Unload()
        {
            Puts("Revoking lootdefender.bypass.lockouts from default group!");
            permission.RevokeGroupPermission("default", "lootdefender.bypass.lockouts");
        }​
nivex

is that the F15 event? I don't play so I am not familiar.

this should work though.

        private void OnEventTrigger(TriggeredEventPrefab prefab)
        {
            if (prefab.name == "assets/bundled/prefabs/world/event_f15e.prefab")
            {
                Puts("F15 event has started, granting lootdefender.bypass.lockouts to default group!");
                permission.GrantGroupPermission("default", "lootdefender.bypass.lockouts", plugins.Find("LootDefender"));
            }
        }

        private void Unload()
        {
            Puts("Revoking lootdefender.bypass.lockouts from default group!");
            permission.RevokeGroupPermission("default", "lootdefender.bypass.lockouts");
        }​

Ah yes that event indeed - awesome, thanks!

no problem

After the recent update I realized I have to manually patch this every month of course :)

Would it make sense to make this a default feature or an option/setting in the plugin? Afaik all servers have these events since its vanilla. We mostly use the lockouts to stop people from hoarding Bradley during wipe on PvE servers; but for wipe day with 10+ Bradleys on the map that doesn't make too much sense. :)

sure, I can add it as option.

nivex

sure, I can add it as option.

Hell yea, thanks <3