Solved Check if a location is within player's island protection(a skyblock)

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

Uzumaki

Well-Known Member
Feb 20, 2017
310
10
18
33
Check if a location is within player's island protection(a skyblock)

I think is possible to do this with skript-mirror, but i have no idea how i can do that.
Here is API

ps. i cannot do that with wolfsk.
 
Last edited:
code_language.skript:
import:
    com.wasteofplastic.askyblock.ASkyBlockAPI 
    java.util.UUID

command /test:
    trigger:
        if ASkyBlockAPI.getInstance().getIslandOwnedBy(UUID.fromString(player's uuid)).onIsland(player's location): #skript uuids are strings so it needs to be converted to an actual uuid
            send "You are in your island's protection"
 
  • Like
Reactions: Uzumaki
Status
Not open for further replies.