1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Addon skJson 2.7,0

Working with json in skript

  1. skript-gson 2.0.4 - Changed internal object mapping

    CoffeeRequired
    skript-gson 2.0.4
    [​IMG]


    Hello everyone
    Changed internal object mapping for Items, now you are able to pull Item from mapped json as well
    Code (Text):
    1. [/FONT]
    2. command saveinv:
    3.     trigger:
    4.         set {inv} to json from player's inventory
    5.  
    6. command listinv:
    7.     trigger:
    8.         map {inv} to {_inv::*}
    9.         loop (indices of {_inv::contents::*}):
    10.             if {_inv::contents::%loop-value%::*} is set:
    11.                 set {_item} to {_inv::contents::%loop-value%::*}'s form parsed as skript-type
    12.                 give {_item} to "player's name" parsed as player
    13.  
    14.  



    Thank you all for your attention.
    Sincerely Coffee.

    FTW skript-gson

    Full Changelog: https://github.com/cooffeeRequired/skript-gson/compare/2.0.3...2.0.4
Return to update list...