mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-18 05:51:12 +00:00
27 lines
No EOL
600 B
JavaScript
27 lines
No EOL
600 B
JavaScript
module.exports=inject;
|
|
|
|
function inject(serv,player)
|
|
{
|
|
|
|
player.on("connected",function(){
|
|
serv.log("[INFO]: " + player.username + ' connected');
|
|
});
|
|
|
|
player.on("spawned",function(){
|
|
serv.log("[INFO]: position written, player spawning...");
|
|
});
|
|
|
|
player.on("disconnected",function(){
|
|
serv.log("[INFO]: " + player.username + ' disconnected');
|
|
});
|
|
|
|
player.on("error",function(error){
|
|
serv.log('[ERR]: Client: ' + error.stack);
|
|
});
|
|
|
|
player.on("chat",function(message){
|
|
message = '<' + player.username + '>' + ' ' + message;
|
|
serv.log("[INFO] " + message);
|
|
});
|
|
|
|
} |