mirror of
https://github.com/Threnklyn/MinecraftChat.git
synced 2026-06-03 03:38:27 +02:00
Run the interval on the clientside instead of the server side
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user