Jump to content

cleanup/delete zones when unloading plugin

Not a Bug 1.1.14

AlexAlex
AlexAlex

Posted

I have a specific usecase that is not supported with the current options/switches of your plugin. Maybe with a new option i could make it work.

I propose an option to cleanup/remove TC zones when the plugin is unloaded.

Context: This is a pve/pvp mix server

  • 24/7 pvp at t2+ monuments, cargo, tugboats, heli, etc
  • raid is allowed during a timeframe each day, outside the timeframe = no raid

Vanilla AgileZones is creating the heli, tugboat, cargo, etc zones - but no TC Zones.

I am then using a second copy of AgileZones which i renamed to AgileZones_TC. The config has only TC Zones enabled, nothing else.

My idea was to load this second instance (AgileZones_TC) at the beginning of raid time and unload it at the end.

The loading part works, it will create TC zones for TC's that have been placed while the plugin was not active. The unloading part does not accomplish my goal because it does not remove the TC zones from ZoneManager. 

Any ideas how i can best get to where i would like to go? 🙂

Cheers,
Alex

Goblox

Posted

I wouldn't want to remove tc zones on unload/restart to avoid a huge server pause. ...but i guess i could make it optional. I think you could achieve what you want by modifying config to disable tc zones and then reloading the plugin. I'm assuming you don't have a great way to automate modifying the config file?

AlexAlex

Posted

I could try and create a script to enter the (pterodactly) docker container, edit the config file, exit the container, connect to rcon and reload the plugin. I had not thought of that yet 🙂
This may actually be a better solution in the long run. Let me see what i can come up with and report back here. (thx)

AlexAlex

Posted

I implemented your suggestion

  • download file via sftp
  • edit file to either set "TC Zone Radius" to zero (raid off) or my suggested range (raid on)
  • upload file
  • use rcon-cli to trigger reload

Thanks 🙂

Goblox

Posted

Changed Status from Pending to Not a Bug

1.4m

Downloads

Total number of downloads.

7k

Customers

Total customers served.

104.9k

Files Sold

Total number of files sold.

2.1m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.