Help the value is not output

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

Cannabis64

Member
Jul 22, 2024
1
0
1
outputs %skript_points::%player%%', %skript_chprogress::%player%% - N/A
Code:
 on join:
    if {points::%player%} is not set:
        set {points::%player%} to 10

command /bpreset [<player>]:
    permission: op
    trigger:
        set {points::%arg-1%} to 10
        send "&f &fPoints %arg-1% set 10!"

on break:
    if player has permission "challenge.p.1":
        if event-item is log:
            add 1 to {chprogress::%player%}
            if {chprogress::%player%} is 12:
                delete {chprogress::%player%}
                make console execute command "lp user %player% permission set challenge.d.1"
                make console execute command "lp user %player% permission unset challenge.p.1"
                add 4 to {points::%player%}
                levelup(player)
                make console execute command "eco give %player% 200"
                send action bar "&8▪ &fThe quest has been successfully completed! &8▪" to player
 

Attachments

  • 1721604716290.png
    1721604716290.png
    904 bytes · Views: 119
Last edited: