Solved Save Inventory

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

Addivt

New Member
Jun 30, 2018
6
0
0
Code:
command /gmc [<player>]:
    permission: admin.gmc
    permisison message: &cNo permission
    trigger:
        if arg-1 is not set:
            set player's gamemode to creative
            equip player with chain leggings
            equip player with chain helmet 
            equip player with chain boots 
            equip player with chain chestplate 
        else:
            if arg-1 is set:
                set arg-1's gamemode to creative
                equip arg-1 with chain leggings
                equip arg-1 with chain helmet 
                equip arg-1 with chain boots 
                equip arg-1 with chain chestplate 
               
               
command /gms [<player>]:
    permission: admin.gms
    permission message: &cNo permission
    trigger:
        if arg-1 is not set:
            set player's gamemode to survival
            return player's inventory
        else:
            if arg-1 is set:
                set arg-1's gamemode to survival
                return arg-1's inventory
Can someone help me?
When someone goes into /gmc, they will be equipped with chain armor, I'm wondering how to save their inventory, then when they return into /gms, they are equipped with their previous inventory before they went into /gmc.
 
Status
Not open for further replies.