diff --git a/core/assets/bundles/bundle.properties b/core/assets/bundles/bundle.properties index 29bf8f2521..b8f998ab54 100644 --- a/core/assets/bundles/bundle.properties +++ b/core/assets/bundles/bundle.properties @@ -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. diff --git a/core/src/mindustry/ui/fragments/PlayerListFragment.java b/core/src/mindustry/ui/fragments/PlayerListFragment.java index c1359c5d80..30becd5d34 100644 --- a/core/src/mindustry/ui/fragments/PlayerListFragment.java +++ b/core/src/mindustry/ui/fragments/PlayerListFragment.java @@ -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); }