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

@@ -277,10 +277,11 @@ server.version = [gray]v{0} {1}
server.custombuild = [accent]Custom Build server.custombuild = [accent]Custom Build
confirmban = Are you sure you want to ban "{0}[white]"? confirmban = Are you sure you want to ban "{0}[white]"?
confirmkick = Are you sure you want to kick "{0}[white]"? confirmkick = Are you sure you want to kick "{0}[white]"?
confirmvotekick = Are you sure you want to vote-kick "{0}[white]"?
confirmunban = Are you sure you want to unban this player? confirmunban = Are you sure you want to unban this player?
confirmadmin = Are you sure you want to make "{0}[white]" an admin? confirmadmin = Are you sure you want to make "{0}[white]" an admin?
confirmunadmin = Are you sure you want to remove admin status from "{0}[white]"? confirmunadmin = Are you sure you want to remove admin status from "{0}[white]"?
votekick.reason = Vote-Kick Reason
votekick.reason.message = Are you sure you want to vote-kick "{0}[white]"?\nIf yes, please enter the reason:
joingame.title = Join Game joingame.title = Join Game
joingame.ip = Address: joingame.ip = Address:
disconnect = Disconnected. disconnect = Disconnected.

View File

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