File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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 } ) ;
You can’t perform that action at this time.
0 commit comments