Update GameModeExtensions.kt
This commit is contained in:
@@ -2,6 +2,9 @@ package net.axay.kspigot.extensions.bukkit
|
||||
|
||||
import org.bukkit.GameMode
|
||||
|
||||
/**
|
||||
* @return Whether it is possible to take damage in this [GameMode].
|
||||
*/
|
||||
val GameMode.isDamageable: Boolean
|
||||
get() = when (this) {
|
||||
GameMode.SURVIVAL, GameMode.ADVENTURE -> true
|
||||
|
Reference in New Issue
Block a user