BedrioxDOCUMENTATION
API CLASS

ScoreboardScoreChangeEvent

Cancellable, adjustable intent emitted before an objective score changes.

Bedriox\Api\Event\Scoreboard\ScoreboardScoreChangeEvent
classBedriox\Api\Event\Scoreboard

Public methods

__construct(Bedriox\Api\Scoreboard\ScoreboardObjective $objective, Bedriox\Api\Player\Player|Bedriox\Api\Entity\Entity|string $holder, ?int $previousScore, ?int $score)

Typed public method.

score(): ?int

Typed public method.

setScore(?int $score): void

Typed public method.

View exact source ↗