How to create a session?

Discussion in 'Plugin Development' started by Ticksy, Nov 1, 2011.

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

    Ticksy

    I'm writing a plug-in which to store some value between commands. In this web, at least, it's called sessions (in PHP, for example).
    In Java and Bukkit I still only a beginner. The best and easiest way to implement session is create a map of where to add ligament Name + Value?
     
  2. Offline

    coldandtired

    HashMaps are probably your best bet. But using a command doesn't clear all the variables so as long as you don't reload the plugin the values will still be there.
     
    Ticksy likes this.
Thread Status:
Not open for further replies.

Share This Page