cutscene: type: command name: cutscene debug: true description: A custom cutscene script for fariasmp usage: /cutscene permission message: Sorry! script: - if : - run exitcutscene - else: - run startcutscene exitcutscene: type: task script: - narrate cutscene stopped - flag cutscene:! #return to saved location when cutscene is exited. - teleport # remove the old location flag now it's used - flag location:! #put back in gms when cutscene is ended - adjust gamemode survival startcutscene: type: task script: # save current location so we can return to it - flag location: # flag them as cutscene active - flag cutscene # put the player in gmsp - adjust gamemode spectator - wait 5s - run exitcutscene cutscenehandler: type: world debug: false events: # block all commands when cutscene is running on command: - if : - determine FULFILLED # if they join and they didnt leave the cutscene properly, force kick them out. on player joins: - if : - run exitcutscene