Ask coding questions

← Back to all posts
Live Chat kick command
PixelNinja (309)


i have been working out a kick command and have almost finished, the only problem I am having is on client side where name variable is blank. If you see in client/main.js line 89 to 97, this is where the client is comparing their name to the person being kicked, the only problem is that name on the clientside is blank. if you type kick %insertnamehere% then everyone in the chat will message the name of the person being kicked. just wont compare it to there own name. Any ideas why name is blank?


Answered by Geocube101 (623) [earned 5 cycles]
View Answer
Geocube101 (623)

I am not able to run your code as your index.js file throws an error

duck132912 (210)

is says refused to connect