Better votekick reason input (#8673)

* Update bundle.properties

* Update PlayerListFragment.java

* Update bundle.properties

* Update bundle.properties
This commit is contained in:
Даркнесс#3729
2023-06-05 03:50:48 +03:00
committed by GitHub
parent 32c146cdf1
commit ebe965ef40
2 changed files with 4 additions and 3 deletions

View File

@@ -199,8 +199,8 @@ public class PlayerListFragment{
button.add().growY();
button.button(Icon.hammer, ustyle,
() -> ui.showConfirm("@confirm", Core.bundle.format("confirmvotekick", user.name()),
() -> Call.sendChatMessage("/votekick #" + user.id + " No reason is provided")))
() -> ui.showTextInput("@votekick.reason", Core.bundle.format("votekick.reason.message", user.name()), "",
reason -> Call.sendChatMessage("/votekick #" + user.id + " " + reason)))
.size(h);
}