次のエラーが表示されます。
src\server\model\players\Client.java:1089: error: unreachable statement
PlayerSave.saveGame(this);
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
これはコードです:
public void destruct() {
PlayerSave.saveGame(this);
if(disconnected == true) {
saveCharacter = true;
}
if(disconnected == true){
getTradeAndDuel().declineTrade();
}
if(session == null)
Server.panel.removeEntity(playerName);
return;
PlayerSave.saveGame(this);
if (clanId >= 0)
Server.clanChat.leaveClan(playerId, clanId);
getPA().removeFromCW();
if (inPits) {
Server.fightPits.removePlayerFromPits(playerId);
}
Misc.println("[DEREGISTERED]: "+playerName+"");
PlayerSave.saveGame(this);
saveCharacter = true;
HostList.getHostList().remove(session);
disconnected = true;
session.close();
session = null;
inStream = null;
outStream = null;
isActive = false;
buffer = null;
super.destruct();
}