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); }
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); }
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); }