Checkpoints Parkour Plugin

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Diamond

Member
Aug 30, 2023
4
1
3
25
Category: Minigame/skript

Suggested name: Checkpoint Skript

Spigot/Skript Version: MC version 1.8.9

What I want:

I want a parkour plugin where you can select a area (like in worldedit), and you you specify the name of it (e.g. map-1). When you are in the area, there can be placed presureplates using a command, these presureplates are checkpoints. When a player walks on the checkpoint, and then they do /cp (or /checkpoint), it teleports them to the latest checkpoint they have in the area they are in.

So you create a region, when in that area, you can place checkpoints as an admin. A player is in the area and does /cp, teleports them to the latest checkpoint in that area, when they are in a different area, it teleports them to the latest checkpoint in that area, not in the other one they played.

Ideas for commands:
/areapos1 <area_name> - Position 1 of region
/areapos2 <area_name> - Position 2 of region
/checkpoint place - Set the finish of the parkour according to the set region
/cp (or just /checkpoint) - Teleports you to the latest checkpoint you have in the area.

Ideas for permissions:
None
 
Last edited:
  • Like
Reactions: Neelix_bear
I just wrote this code, so i dont know if there is any errors in there. Its not a plugin, sorry, but thats all i can do. I hope this code can help you.

What it does:
-On player first join, it creates a checkpoint for the start.
-If player walks on a pressure plate (you can change the block) they will get a checkpoint.
-On command /checkpoint, they can go back to their location.
-On player death, it sends the player to the last checkpoint.


on player first join:
set {checkpoint::%player%} to location of player

on walking on any pressure plate:
set {checkpoint::%player%} to location of player
send "you have set a checkpoint!"

on respawn:
teleport player to {checkpoint::%player%}

command /checkpoint:
aliases: cp, cpoint, checkp, spawnpoint, sp, spoint, spawnp
trigger:
teleport player to {checkpoint::%player%}