Adding player to custom config with a value & onCommand say value

Discussion in 'Plugin Development' started by goldencreeper, Sep 10, 2012.

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


    I am developing a plugin that combines a few plugins all into one but with my own code. When a player joins my server for the first time their name and a specific value(100) gets added to a custom config file(players.yml). Then when the player types /$ the server searches the config file for their name and the value(100). The problem is, is that when the player first joins and types /$ nothing happens until the server reloads. No errors or anything. I did check to see if their name is even getting added to the config and it is. So if u know why this happens or a way to solve this please reply.

    <font color="#ff0000">*</font>If you need any code or version info just reply below and i'll see if i can add it.


    Edit: Here is my code: <Edit by Moderator: Redacted mediafire url>
    Last edited by a moderator: Nov 9, 2016
  2. Offline


    Without the code I can't say for sure. But I would suggest that after you add the player to the config file make sure that you have saveConfig() as the very last function;
Thread Status:
Not open for further replies.

Share This Page