classCommands: type: World events: on invisme command: if == true { - define arg1 "" - if "%arg1%" == "null" { - cast INVISIBILITY duration:7200 - narrate "All players within a 100 block radius around you are now invisible!" - narrate "You can turn everyone back to normal by doing /invisme -r" } else if %arg1% == "-r"{ - cast INVISIBILITY remove - narrate "All players within a 100 block radius around you are visible again!" } else { - narrate "INVALID SYNTAX<&co> Correct syntax is /invisme (-r)" } } else { - narrate "You don't have permission to use this command." } - determine fulfilled on gm1me command if == true { - foreach { - execute as_player "/gm 1 %value%" } - narrate "All nearby players switched to gamemode 1" } else { - narrate "You don't have permission to use this command." } - determine fulfilled on gm2me command if == true { - foreach { - execute as_player "/gm 2 %value%" } - narrate "All nearby players switched to gamemode 2" } else { - narrate "You don't have permission to use this command." } - determine fulfilled on gm0me command if == true { - foreach { - execute as_player "/gm 0 %value%" } - narrate "All nearby players switched to gamemode 0" } else { - narrate "You don't have permission to use this command." } - determine fulfilled