mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-04 00:31:54 +00:00
Voting Setup & Made SettingsLoader a tiny bit cleaner (#53)
This commit is contained in:
committed by
Daniel Ginovker
parent
fc45ec3548
commit
6cfca2886a
@@ -87,11 +87,9 @@ import redone.world.ObjectManager;
|
||||
|
||||
public class Client extends Player {
|
||||
|
||||
public static String ersSecret;
|
||||
|
||||
public byte buffer[] = null;
|
||||
public Stream inStream = null, outStream = null;
|
||||
private IoSession session;
|
||||
private IoSession session;
|
||||
private final ItemAssistant itemAssistant = new ItemAssistant(this);
|
||||
private final ShopAssistant shopAssistant = new ShopAssistant(this);
|
||||
private final Trading trading = new Trading(this);
|
||||
@@ -569,12 +567,12 @@ public class Client extends Player {
|
||||
Server.clanChat.leaveClan(playerId, clanId);
|
||||
}
|
||||
|
||||
if(!ersSecret.equals("")) {
|
||||
if(!Server.ersSecret.equals("")) {
|
||||
boolean debugMessage = false;
|
||||
System.out.println("Updating highscores!");
|
||||
com.everythingrs.hiscores.Hiscores.update(ersSecret, "Normal Mode", this.playerName, this.playerRights, this.playerXP, debugMessage);
|
||||
System.out.println("Updating highscores for " + this.playerName + "!");
|
||||
com.everythingrs.hiscores.Hiscores.update(Server.ersSecret, "Normal Mode", this.playerName, this.playerRights, this.playerXP, debugMessage);
|
||||
} else {
|
||||
System.out.println("Can't update highscores!");
|
||||
System.out.println("EverythingRS API Disabled, highscores not saved!");
|
||||
}
|
||||
|
||||
Misc.println("[DEREGISTERED]: " + playerName + "");
|
||||
|
||||
Reference in New Issue
Block a user