HashMap Loading

Discussion in 'Plugin Development' started by Jamscott, Oct 24, 2014.

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

    Jamscott

    I have been making a rank system for my server and i save there rank to the config but
    Should i load there rank into a hashmap on join or enable?
     
  2. Offline

    ProtoTempus

    Jamscott That would be one way to do it. Another option is to use Bukkit Permissions or even using the Vault Library (Edit: Though this would only be good if you plan on doing more than just checking permissions as Vault's permission check just calls Bukkit's).
     
  3. Offline

    Jamscott

    ProtoTempus

    My rank system using enums you get far better customization.
    I also don't want to depend on other plugins
     
  4. Offline

    ProtoTempus

  5. Offline

    Jamscott

    ProtoTempus I prefer my method. Im not needing to use MySQL atm my server is just for me and my friends for now :p
     
  6. Offline

    ProtoTempus

    Jamscott I was just suggesting other options to the storage of permssions. Now that I read you post again I see you're asking about the storage of permissions in runtime. My bad. Just woke up.

    A HashMap would work great for just storing a rank.
     
  7. Offline

    Jamscott

    ProtoTempus I was trying to say should i load every players rank onEnable or On Join
     
  8. Offline

    ProtoTempus

    Jamscott
    It's really up to you. I'd load them onEnable.
     
  9. Offline

    mythbusterma


    You are designing a plugin that gives you more customization than PeX or GroupManager? I'd like to see that. Any particular reason you don't want to depend on another plugin that will literally do everything you want for you and not even require you to write a single line of code?
     
  10. Offline

    Hellgast

    It's not because someone else made it already that you can't write it again yourself.
    Like he said, it's just for him and his frends.
     
Thread Status:
Not open for further replies.

Share This Page