Buffs

Group
player
Methods
4
Fields
None

Getting one

player:buffs()

Methods

MethodReturnsDescription
active(){ Buff }Every running timer, in a fixed order.
has(string)booleanWhether a timer runs now.
counters(){ [string]: number }Every buff counter that is up, by its name ("COLOSSEUM_DOOM"), with its count.
counter(string)number?One counter's count.

Returned by

MethodReturnsDescription
PlayerDomain.buffsBuffsTimers and buffs, tracked whether or not the timers-and-buffs plugin is on.

Method details

has

has: (Buffs, string) -> boolean

Whether a timer runs now.

timer
The timer's name ("STAMINA"); another name raises.

counters

counters: (Buffs) -> { [string]: number }

Every buff counter that is up, by its name ("COLOSSEUM_DOOM"), with its count.

counter

counter: (Buffs, string) -> number?

One counter's count.

counter
The counter's name; another name raises.
Returns
nil while the counter is down.