Run the interval on the clientside instead of the server side

This commit is contained in:
AlexKvazos
2015-04-30 00:42:50 -05:00
parent f3683b4e8e
commit 29467f73b3
7 changed files with 22 additions and 35 deletions
+9
View File
@@ -0,0 +1,9 @@
module.exports = function(socket) {
socket.on('players', function() {
if (socket.mcbot && socket.mcbot.players) {
socket.emit('bot:players', socket.mcbot.players);
}
});
};