JSON script

  • 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.
code_language.skript:
on chat:
    player has permission "user.view"
    cancel event
    set {_to} to "%player%"
    set {_msg} to "%coloured player's prefix%||ttp:&6&lDinero&f: &7%player's balance%%nl%&b&lGemas&f: &e0%nl%&8&m------------%nl%&6&lNivel&f: &2%{level.%player%}%||&c%player% &f%message%"
    json({_to}, {_msg})

Code by Adrihun
 
Should work
code_language.skript:
on chat:
    loop all players:
        player has permission "user.view"
        cancel event
        set {_to} to "%loop-player%"
        set {_msg} to "%coloured loop-player's prefix%||ttp:&6&lDinero&f: &7%balance of loop-player%%nl%&b&lGemas&f: &e0%nl%&8&m------------%nl%&6&lNivel&f: &2%{level.%loop-player%}%||&c%loop-player% &f%message%"
        json({_to}, {_msg})
 
Should work
code_language.skript:
on chat:
    loop all players:
        player has permission "user.view"
        cancel event
        set {_to} to "%loop-player%"
        set {_msg} to "%coloured loop-player's prefix%||ttp:&6&lDinero&f: &7%balance of loop-player%%nl%&b&lGemas&f: &e0%nl%&8&m------------%nl%&6&lNivel&f: &2%{level.%loop-player%}%||&c%loop-player% &f%message%"
        json({_to}, {_msg})
You know you could just json the whole thing in one line?
 
arg's money is:
code_language.skript:
command /money <player>:
    trigger:
        if arg 1 is not set:
            set {_money} to player's account
            send "&cYour balance is: %{_money}%"
        else if arg 1 is set:
            set {_moneyarg} to arg 1's account # or arg 1's balance
            send "&cBalance of %arg 1% is: %{_moneyarg}%"
 
Status
Not open for further replies.