I did the highscore tutorial from deathchaos9 or something.
This is what I got: MedusaScape HighScores
It is missing search/compare boxes and it doesn't save my players
SAVING METHOD
Code:
public void destruct() {
if (mySock == null)
return; // already shutdown
SQL.createConnection();
SQL.saveHighScore(this);
System.out.println("Unregistered " + getPlayerName() + " [idx="
+ playerId + ", online="
+ (PlayerManager.getSingleton().getPlayerCount() - 1) + "]");
Server.getItemManager().destruct(this); // set this player's items so
// anybody can pick them up!
friendsAssistant.destruct();
Server.getPlayerManager().removePlayerRegion(currentRegion,this);
if(getExtraData().containsKey("shop")) {
getExtraData().remove("shop");
getActionAssistant().removeAllWindows();
}