Skript (Build Permissions)

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

Status
Not open for further replies.

Ajility

Member
Sep 18, 2018
4
0
0
28
I was wondering if there is a way to allow people to build when they are below a certain Y Level. Then after building, the block they placed will disappear after a certain amount of time. Can someone help me?
 
Something like this?
code_language.skript:
on place:
    if y coord of event-block <= 61:                  #Checks for y level
        if player doesn't have permission "Can.Build": #checks for perm
            cancel event                                 #No perm = no build
            send "NOPE... NO BUILDING HERE"
        else:                                            #Has perm... can build
            wait 1 minute
            set event-block to air                        #after a minute block is removed
 
Status
Not open for further replies.