FreedyMinigameMaker2 is a script-type minigame creation plugin.
Executing a command is the basic principle.
WikiPage here!
Discord community here!
Code (Text):
//remove join and leave message
on join { set data(joinMessage, null) }
on left { set data(leftMessage, null) }
//remove death screen
on player damage {
if (health <= data(damageFinal)) { //when player damaged, player health will be going to death
set health get size health
clear potion
set food 20
create location("spawnpoint", "world", 0, 0, 0)
teleport "spawnpoint"
title (0, 20, 0, "&cBoom! You dead!", "")
return false //cancel the event
}
//heal command
on command {
split (data(command), " ", args) //divide command string as blank
if (get list(args, 0) == "/heal") {
set health 20
return false //cancel the event
}
}