Make replacePlayer player the target before leaving.

The actions were in the wrong order, you would be demoted then try to player the target; but would return `/addplayer - Access Denied`
This commit is contained in:
Jackson 2015-07-08 20:45:16 +10:00
parent f6d1d1a185
commit ca83bf0c2e

View File

@ -1118,8 +1118,8 @@
var self = this;
app.addPopupPrompt("Replacement player's username", "Replace player", function(target) {
if (!target) return;
room.leaveBattle();
room.send('/addplayer ' + target);
room.leaveBattle();
self.close();
});
},