Dynmap + Skript??

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

ChrilleDEV

Member
Jul 6, 2020
11
0
1
Hello, is it possible that you can mark a chunk on Dynmap that is claimed ingame.

What I am trying to do:
I am trying to claim a chunk ingame, then make it visible on Dynmap.

My Code rn:
Code:
##CODE##
on break:
    if {chunks::%chunk at event-block%} is true:
        if {chunks::%chunk at event-block%.owner} is not player:
            send "NO!"

on place:
    if {chunks::%chunk at event-block%} is true:
        if {chunks::%chunk at event-block%.owner} is not player:
            send "NO!"

command /claim:
    trigger:
        if {chunks::%chunk at player%} is not true:
            set {chunks::%chunk at player%} to true
            set {chunks::%chunk at player%.owner} to player
            send "Chunk claimed!"
        else:
            send "Chunk already claimed!"

command /unclaim:
    trigger:
        if {chunks::%chunk at player%} is true:
            if {chunks::%chunk at player%.owner} is player:
                delete {chunks::%chunk at player%}
                delete {chunks::%chunk at player%.owner}
                send "Chunk unclaimed!"
            else:
                send "This is not your chunk!"
        else:
            send "Chunk not claimed!"

I hope someone can help me!
 
Status
Not open for further replies.