Skip to content

Commit

Permalink
Merge pull request #6314 from psikomonkie/issue-6277-unable-to-kick
Browse files Browse the repository at this point in the history
Fixes #6277: Fixed the kick command so players (and bots) can be kicked
  • Loading branch information
HoneySkull authored Dec 25, 2024
2 parents 6bbdb23 + e58399b commit 2766cf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion megamek/src/megamek/server/commands/KickCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ protected boolean preRun(int connId) {

@Override
protected void runCommand(int connId, Arguments args) {
var kickedId = (int) args.get("playerId").getValue();
var kickedId = (int) args.get("playerID").getValue();
var passwordOpt = (OptionalPasswordArgument) args.get("password");

if (serverPasswordCheckFailed(connId, passwordOpt)) {
Expand Down

0 comments on commit 2766cf7

Please sign in to comment.