forked from 2009Scape/Server
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:
parent
fba2e413cf
commit
3119a01e3f
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue