Can someone make an simple skript to delete blocks?

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

Tyler Crain

May 9, 2021
I am making a PVP arena in a multiverse world in which you can place blocks sorta like Hypixel's pit but I need a way so that after 5 minutes the block that any player has placed will get deleted and I have everything else I need but I can't find a plugin like that online and I don't know how to code scripts.
on place:
    set {db.%event-location%.%player%} to event-location
    wait 5 minutes
    if {db.%event-location%.%player%} is set:
        set block at event-location to air
        clear {db.%event-location%.%player%}
    else if {db.%event-location%.%player%} is not set:

on break:
    loop all players:
        if {db.%event-location%.%loop-player%} is set:
            clear {db.%event-location%.%loop-player%}
Most easy:
on place:
  if player's gamemode isn't creative:
    wait 5 minutes
    set event-block to air