Jump to content

Variables won't save


Recommended Posts

    if {Collection::%{_p}%} does not contain "Default":
        add "Default" to {Collection::%{_p}%}
        send "%{Collection::%{_p}%}%" to {_p}
        send "&a&lYou discovered a new pet! &2Check your collection!" to {_p}

(This is in a function event)
No matter what, RIGHT AFTER i add "Default" to the variable, it sends "<none>" to the player, meaning it wasn't added.

  • Like 1




Lifestealed | Minecraft Servers

[VIP] 12/26/20 - 10/27/2021
[PRO] 12/27/21 - Present


Link to comment
Share on other sites

maybe try 

set {Collection::%{_p}%} to "Default"

As far as I know.. You don't do list variables this way. I was taught to do it like this: 

  • Like 1

rose city STICKER


i code, animate, develop, UI design, learn, and adapt, as well as make servers, of course

💐Joined Minehut sometime in 2014
💐VIP sometime in 2018
💐Legend in January 2021
💐Helper on 4/11/2021
💐♥ (Retired) on 5/17/2021

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...