namespace Oxide.Plugins { [Info("InitialiseRust+", "Spoon", "0.0.1")] [Description("Retry initializing the Rust+ companion server if it previously failed every 30 minutes.")] class InitialiseRustPlus : RustPlugin { private Timer retryTimer; void Init() { retryTimer = timer.Every(1800f, () => { RetryInitialize(); }); } void Unload() { if (retryTimer != null) { retryTimer.Destroy(); retryTimer = null; } } private void RetryInitialize() { ConsoleSystem.Run(ConsoleSystem.Option.Server, "app.retry_initialize"); } } }