예제 #1
0
        /// <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);
        }
예제 #2
0
파일: Round.cs 프로젝트: o5zereth/EXILED
        /// <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;
        }
예제 #3
0
        /// <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;
        }