Exemple #1
0
        public static bool Prepare()
        {
            if (!CommandTools.IsAnyEventActive(ScriptEvent.playerEnteredChunk))
            {
                Log.Debug($"Patch {nameof(PlayerEnteredChunk)} is disabled.");
                return(false);
            }

            Log.Out($"Injecting event tracker {nameof(PlayerEnteredChunk)} ...");
            return(true);
        }
Exemple #2
0
        public static bool Prepare()
        {
            if (!CommandTools.IsAnyEventActive(ScriptEvent.playerDamaged, ScriptEvent.animalDamaged, ScriptEvent.zombieDamaged))
            {
                Log.Debug($"Patch {nameof(EntityDamaged)} is disabled.");
                return(false);
            }

            Log.Out($"Injecting event tracker {nameof(EntityDamaged)} ...");
            return(true);
        }
Exemple #3
0
        public static bool Prepare()
        {
            if (!CommandTools.IsAnyEventActive(ScriptEvent.playerLevelUp, ScriptEvent.playerExpGained))
            {
                Log.Debug($"Patch {nameof(PlayerStatsChanged)} is disabled.");
                return(false);
            }

            Log.Out($"Injecting event tracker {nameof(PlayerStatsChanged)} ...");
            return(true);
        }