Solved People Get Removed Off Arraylist When Reload, Server Stops Or They Disconnet.

Discussion in 'Plugin Development' started by xXkguyXx, Jun 19, 2015.

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

    xXkguyXx

    People Get Removed Off Arraylist When Reload, Server Stops Or They Disconnet. I want To Know How I Can fix this so that They get Saved and yea. I tryed Creating a Config and Saving To it.
     
  2. Offline

    SuperOriginal

    Then try again.
     
  3. Offline

    Freelix2000

    @xXkguyXx
    The bold isn't really necessary, and you did not explain at all what you're trying to do. I'm just going to guess you want to save player data even when the server restarts. You have to save it to a file, and the easiest way is with a config file. I don't really want to explain how to make a config file, but there are countless tutorials. Do about 5 minutes of research and you'll find it, then feel free to ask specific questions about things that you don't understand.
     
  4. Offline

    xXkguyXx

    Sorry, And Anyways I was making a Kit Plugin, For a Server. I have CoolDowns, I Put the people in a Cooldown In a ArrayList and Then Yea, it goes From there,.

    @SuperOriginal ;-;

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 12, 2016
  5. Offline

    justin_393

    Save your list to a config when onDisable is called, and load them into a list when onEnable is called.
     
  6. Offline

    Edvio

    Use a hashmap instead
     
  7. Offline

    xXkguyXx

    Never Mind, I Got it! I Saved there Current Second to a Config, So even if the server is offline the cooldown would still be coding Thanks.. :]
     
Thread Status:
Not open for further replies.

Share This Page