You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importcom.wireless4024.mc.bukcore.utils.*
server {
// `this` is same as `Bukkit.getServer()`
defaultGameMode =GameMode.CREATIVE// same as // Bukkit.getServer().defaultGameMode = GameMode.CREATIVEval playerName ="playerabc"// you can also return a value from a blockval level:Int?= player(playerName){
// this block will execute if player is found
kill() // kill him if found
level // return player level from this block
}
// if you want to apply something to all player in server
player {
// give 10 level to all player in server
giveExpLevels(10)
}
}