Storing player data

Discussion in 'Plugin Development' started by Gopaintman, Sep 6, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    Gopaintman

    How would one go about adding a player's name to the config under a path and storing an int on it?
     
  2. Offline

    Compressions

    Gopaintman What do you mean by storing an int on it?
    Code:
    //storing player name:
    config.set("name", player.getName());
     
    Gopaintman likes this.
  3. Offline

    Gopaintman

    Compressions
    Such as
    Players:
    kills:
    Gopaintman: 2
    BitVenom: 3
    //code happens
    Players:
    kills:
    Gopaintman: 2
    BitVenom: 1
    ByteVenom: 8
     
  4. Gopaintman
    Like when the player logs on?
    Make a player login event and make/set their info into a config using getConfig().set("kills", "2"); and ect..
     
  5. Offline

    OcelotcR


    Use hashmaps.
     
Thread Status:
Not open for further replies.

Share This Page