Skip to content

Commit

Permalink
Update io banning
Browse files Browse the repository at this point in the history
  • Loading branch information
buthed010203 committed Nov 3, 2023
1 parent cf3ec55 commit b513aa6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/mindustry/client/utils/ServerUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ enum class Server( // FINISHME: This is horrible. Why have I done this?
}, .1F)
}
}
Call.sendChatMessage("/ban ${p.id} $reason")
Call.adminRequest(p, AdminAction.ban, reason)
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/mindustry/input/DesktopInput.java
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ public void update(){
for(var opt : JSBindingOption.values()){
if(opt.check.get() && (opt.runIfOthersRan || !ran)){
if(!settings.getString(opt.settingsKey, "").isEmpty()){
ChatFragment.handleClientCommand(Core.settings.getString(opt.settingsKey, ""));
ChatFragment.handleClientCommand(Core.settings.getString(opt.settingsKey));
ran = true;
} else {
Vars.player.sendMessage(Strings.format(opt.message, Core.keybinds.get(Binding.run_js).key.toString()));
Expand Down

0 comments on commit b513aa6

Please sign in to comment.