mirror of
https://github.com/Threnklyn/MinecraftChat.git
synced 2026-05-18 20:33:28 +02:00
Removed spawn event emitter
This commit is contained in:
@@ -6,10 +6,6 @@ module.exports = function($scope, socket) {
|
||||
|
||||
$scope.chat = '';
|
||||
|
||||
socket.on('bot:spawn', function() {
|
||||
socket.emit('chat', { message: 'Connected via MinecraftChat - https://chat.alexkvazos.com' });
|
||||
});
|
||||
|
||||
$scope.send = function() {
|
||||
if ($scope.chat.trim().length > 0) {
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@ module.exports = (socket) => {
|
||||
var pos = socket.mcbot.entity.position;
|
||||
socket.emit('buffer:info', 'Spawned at X:' + pos.x + ', Y:' + pos.y + ', Z:' + pos.z);
|
||||
socket.emit('bot:players', socket.mcbot.players);
|
||||
socket.emit('bot:spawn');
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user