title: Java saving strings
body: <p>I have a RuneScape Private Server project coded in Java, and am trying to code a personal "tag" that players can use. I have managed to do this, but everytime there is a restart on the server, their "tag" gets reset to "null". </p>
  
  <p>Their "tag" is initalized by doing a command ";;settag [name]". Their tag is then set to whatever they want. I have done this through a string:</p>
  
  <pre><code>      if (command[0].equals("settag")) {
              newTag = getCompleteString(command, 1);
  newTag = player.yellTag
                  player.sendMessage("Your tag is now:" +newTag);
              }
  </code></pre>
  
  <p>I am unsure what the most efficient way to fix this would be, I am thinking of just loading and saving through .xml/.txt files. By the way, player.yellTag is where the next command (::mytag) searches it from, which works fine, until there is a restart of the server.</p>