Skip to content

Commit 4d8c2c7

Browse files
authored
Merge pull request michaljaz#21 from KaffinPX/threejs-javascript
Make Foxs request
2 parents b6122f1 + fa77785 commit 4d8c2c7

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
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);

src/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,6 @@ io.sockets.on("connection", function (socket) {
155155
}
156156
bot.setControlState(state, toggle);
157157
});
158-
socket.on("kicked", function (reason) {
159-
console.log('Kicked! Reason:' + reason);
160-
});
161158
socket.on("command", function (com) {
162159
bot.chat(com);
163160
});

0 commit comments

Comments
 (0)