/// <inheritdoc/> public bool Execute(ArraySegment <string> arguments, ICommandSender sender, out string response) { if (!sender.CheckPermission("ee.reloadtranslations")) { response = "You can't reload translations, you don't have \"ee.reloadtranslations\" permission."; return(false); } bool haveBeenReloaded = TranslationManager.Reload(); Handlers.Server.OnReloadedTranslations(); response = "Plugin translations have been reloaded successfully!"; return(haveBeenReloaded); }
/// <inheritdoc cref="Server.OnWaitingForPlayers"/> public static void OnWaitingForPlayers() { MultiAdminFeatures.CallEvent(MultiAdminFeatures.EventType.WAITING_FOR_PLAYERS); if (Events.Instance.Config.ShouldReloadConfigsAtRoundRestart) { ConfigManager.Reload(); } if (Events.Instance.Config.ShouldReloadTranslationsAtRoundRestart) { TranslationManager.Reload(); } RoundSummary.RoundLock = false; }
/// <inheritdoc cref="Server.OnWaitingForPlayers"/> public static void OnWaitingForPlayers() { MultiAdminFeatures.CallEvent(MultiAdminFeatures.EventType.WAITING_FOR_PLAYERS); Item.BaseToItem.Clear(); Pickup.BaseToItem.Clear(); ExplosiveGrenade.GrenadeToItem.Clear(); FlashGrenade.GrenadeToItem.Clear(); if (Events.Instance.Config.ShouldReloadConfigsAtRoundRestart) { ConfigManager.Reload(); } if (Events.Instance.Config.ShouldReloadTranslationsAtRoundRestart) { TranslationManager.Reload(); } RoundSummary.RoundLock = false; }