changeOutcome

fun changeOutcome(newTargetResult: PlayerManager.DeathBanResult, by: Plugin, isSilent: Boolean = false, reason: String? = null)

Changes the outcome of the process depending on the new parameters given.

Parameters

newTargetResult

The new desired outcome. Note that a player will not be considered as dead by the plugin if the result of the ban is a failure.

by

what plugin this change is coming from. (← Your plugin's main class here)

isSilent

Whether to mute the console message, stating the changes and source of the changes. false by default

reason

Optionally a reason, why the change was made. null by default

See also