summaryrefslogtreecommitdiff
path: root/src/lang/english.txt
diff options
context:
space:
mode:
authorBjarni Thor <bjarni@bjarnithor.com>2020-01-21 15:39:10 +0000
committerCharles Pigott <charlespigott@googlemail.com>2020-02-04 22:17:39 +0000
commit5880f1479f21157158dbe862e4cb1118e0cfbfae (patch)
tree83597e5e42c96594646ccc548a915f303488b044 /src/lang/english.txt
parentb5d56559d2ec16512dd8a0346406bf36486ebf7c (diff)
downloadopenttd-5880f1479f21157158dbe862e4cb1118e0cfbfae.tar.xz
Feature #7756: Allow server to supply a reason to kicked/banned clients
This commit adds the missing feature of allowing the server owner to provide a reason for kicking/banning a client, which the client sees in a pop-up window after being kicked. The implementation extends the network protocol by adding a new network action called NETWORK_ACTION_KICKED that is capable of having an error string, unlike the other network error packages. Additionally, the kick function broadcasts a message to all clients about the kicked client and the reason for the kick.
Diffstat (limited to 'src/lang/english.txt')
-rw-r--r--src/lang/english.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lang/english.txt b/src/lang/english.txt
index 963fc3d28..2a4ab1c28 100644
--- a/src/lang/english.txt
+++ b/src/lang/english.txt
@@ -2168,6 +2168,7 @@ STR_NETWORK_ERROR_WRONG_PASSWORD :{WHITE}Wrong pa
STR_NETWORK_ERROR_SERVER_FULL :{WHITE}The server is full
STR_NETWORK_ERROR_SERVER_BANNED :{WHITE}You are banned from this server
STR_NETWORK_ERROR_KICKED :{WHITE}You were kicked out of the game
+STR_NETWORK_ERROR_KICK_MESSAGE :{WHITE}Reason: {RAW_STRING}
STR_NETWORK_ERROR_CHEATER :{WHITE}Cheating is not allowed on this server
STR_NETWORK_ERROR_TOO_MANY_COMMANDS :{WHITE}You were sending too many commands to the server
STR_NETWORK_ERROR_TIMEOUT_PASSWORD :{WHITE}You took too long to enter the password
@@ -2227,6 +2228,7 @@ STR_NETWORK_MESSAGE_GIVE_MONEY :*** {RAW_STRING
STR_NETWORK_MESSAGE_GAVE_MONEY_AWAY :*** You gave {1:RAW_STRING} {2:CURRENCY_LONG}
STR_NETWORK_MESSAGE_SERVER_SHUTDOWN :{WHITE}The server closed the session
STR_NETWORK_MESSAGE_SERVER_REBOOT :{WHITE}The server is restarting...{}Please wait...
+STR_NETWORK_MESSAGE_KICKED :*** {RAW_STRING} was kicked. Reason: ({RAW_STRING})
# Content downloading window
STR_CONTENT_TITLE :{WHITE}Content downloading