setGamerule

abstract suspend fun setGamerule(gamerule: Gamerule.Gamerules, newValue: Boolean): Gamerule

Sets the boolean value of the given gamerule.

Return

the Gamerule object

Parameters

gamerule

the gamerule to update

newValue

the new boolean value to set