1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Ranks

Discussion in 'Development' started by Astro, Jan 21, 2019.

  1. Astro

    Astro Slime

    Messages:
    78
    GitHub:
    RealAstro
    So i'm trying to save a rank in the config but once the u set a user another rank the old rank's data gets removed and then it gets replaced by the new rank's data.
     
  2. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    Are you saying that's what you did, or is that what you're trying to do? Also, show your code. You should only need to use Config->set() with an identifier for the player and save the config if you want to overwrite their rank. If you want to add to it, just get their current data, and append it with array_push if it's an array, or something else depending on how you stored the data.
     
  3. Astro

    Astro Slime

    Messages:
    78
    GitHub:
    RealAstro
    what i'm trying to do and i only have a code that sets a player the rank and to change the chat format i don't know how to work witht config part that's why i'm trying to figure out
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.