I would like it so when someone loses a duel in the dueling arena it kicks them if they lost, I tried something like this..
Server.playerHandler.players[i].disconnected = true;
but that doesn't work in the PlayerAssistant.java could someone help me code something that will disconnect a player after they lost if so that'd be great... I will rep+ and even add you to the credits.. if I release..
I tried this;
Code:
if (c.duelStatus <= 4) {
c.sendMessage("Oh dear you are dead!");
Server.playerHandler.players[i].disconnected = true;
} else if(c.duelStatus != 6 || !c.inArena()) {
c.sendMessage("You have lost the duel!");
Server.playerHandler.players[i].disconnected = true;
/*o.getPA().movePlayer(
Config.DUELING_RESPAWN_X
+ (Misc.random(Config.RANDOM_DUELING_RESPAWN)),
Any help would be great...