Remove event-block after 40 seconds

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

superhyro

Member
Jun 30, 2023
1
0
1
21
So im trying to make it so when a player places a block in a specific region the event waits 40 seconds and then removes the block how do i do it? i tried this code but it gives an error whats wrong? (if this is even possible)

Code:
on place:
    player does not have permission "bypass.cpvp"
    if event-Block is not obsidian or end crystal or respawn anchor or glowstone:
        if "%region at event-Block%" contains "cpvp":
            cancel the event
            send "&c&lHey! &7Sorry, but you can't place that block here."
            wait 40 seconds
            remove event-block
 
idk if this is what you want
Code:
on place:
player does not have permission "bypass.cpvp"
    if event-Block is not obsidian or end crystal or respawn anchor or glowstone:
        if "%region at event-Block%" contains "cpvp":
            wait 40 seconds
            set event-block to air