#GriefPrevention help?

1 messages · Page 1 of 1 (latest)

dense reef
#

Hiya. I'm using GriefPrevention and want to try and use it with Skript. I've used SkUniversal but it doesn't have anything I need in the docs.

    make player execute command "/claim 10"
    send "&aClaimed!" to player

on break of crying obsidian:
    make player execute command "/removeclaim"
    send "&cUnclaimed!" to player```

The issue is that I want the "/claim 10" to be executed at the event-block, which would make a nice 20x20 claimed radius around the event-block. Instead, it currently executes the command at the player's position, of course. If it isn't possible to make a block execute a command, does Skript have support for GriefPrevention to do what I need?
severe radish
#

is this command made in skript? you can add arguments for a location, or call a function orwhatever from that location

#

"If it isn't possible to make a block execute a command, does Skript have support for GriefPrevention to do what I need?"

  • blocks cant run commands. Skript can cancel events in a certain area, and skript is also compatable with worldguard.
#

.
also, with that code, anyone can break anyone else's block. I would set an NBT tag for the block to see who placed it

dense reef
dense reef
#

Usually how you make a claim is with a shovel that you right click two corners of your claim with.

#

But it has a "/claim" command which makes an immediate claim right at your feet.

#

I'd like this immediate claim function, but at the block placed location. Don't know how to do this, though. Bummer how blocks can't execute commands. Makes sense, though!

severe radish
#

i suppose

#
  • place the block when they use the shovel
#
  • teleport them to the location, then make them run the command
dense reef
#

But it's very.. scuffed.

#

But if I have no other option then, I'll have to do it.