Disallow multiple connections

This commit is contained in:
AlexKvazos
2015-04-28 12:25:50 -05:00
parent 7e62e5dd79
commit be6f96d615
+2 -1
View File
@@ -5,7 +5,8 @@ module.exports = function(socket) {
socket.on('server:connect', function(data, response) {
if (socket.mcbot) {
socket.mcbot.end();
socket.emit('buffer:error', 'Pleae disconnect before connecting again');
return;
}
// create mineflayer bot