Skip to content

Commit fa77785

Browse files
authored
Update index.js
1 parent 697afc8 commit fa77785

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client/scripts/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ class Game {
134134
this.socket.on("msg", function (msg) {
135135
_this.chat.log(msg);
136136
});
137-
this.socket.on("kicked", function () {
138-
_this.chat.log("You have been kicked!");
137+
this.socket.on("kicked", function (reason) {
138+
_this.chat.log("You have been kicked! Reason: " + JSON.parse(reason).text);
139139
});
140140
this.socket.on("xp", function (xp) {
141141
_this.inv_bar.setXp(xp.level, xp.progress);

0 commit comments

Comments
 (0)