Solved Only the person that places a block can break that block

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

    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.

CringeBoy

Active Member
May 20, 2021
65
0
6
Romania
How I can make it so only the person that places a block can break it, like if you place it no one can break it.
 
sounds like a very bad idea to do it per block in skript instead of in a java plugin. and might be better for your server to do it on a per chunk basis.
but:

Code:
on block place:
    set {Ownblocks::%event-block's location%} to event-player

on break:
    if {Ownerblocks::%event-block's location%} is set:
        if {Ownerblocks::%event-block's location%} is not event-player:
            cancel event
        else:
            delete {Ownerblocks::%event-block's location%}

also, a simple google search, or forum search would have given you this link:
https://forums.skunity.com/threads/ownblocks-players-may-not-break-blocks-placed-by-others.6350/
 
Is there any way to make it so if someone that builds less than 5 blocks away from someone else blocks to cancel the block place or a command like /remover to remove by the player himself the blocks
 
Status
Not open for further replies.