Better votekick reason input (#8673)
* Update bundle.properties * Update PlayerListFragment.java * Update bundle.properties * Update bundle.properties
This commit is contained in:
@@ -277,10 +277,11 @@ server.version = [gray]v{0} {1}
|
||||
server.custombuild = [accent]Custom Build
|
||||
confirmban = Are you sure you want to ban "{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?
|
||||
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]"?
|
||||
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.ip = Address:
|
||||
disconnect = Disconnected.
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user