Additional steps to remove random events

The random events came back for some characters, seems the timer got started somehow. This change should pause the timer every time it's registered, so it should never start again.
This commit is contained in:
randy 2024-11-21 17:44:13 -07:00
parent fba2e413cf
commit 3119a01e3f

View file

@ -41,7 +41,8 @@ class AntiMacro : PersistTimer(0, "antimacro", isAuto = true), Commands {
override fun onRegister(entity: Entity) {
if (entity !is Player || entity.isArtificial)
entity.timers.removeTimer(this)
if (entity is Player && entity.rights == Rights.ADMINISTRATOR)
//if (entity is Player && entity.rights == Rights.ADMINISTRATOR)
if (entity is Player)
paused = true
if (runInterval == 0)