diff --git a/lib/playerPlugins/header.js b/lib/playerPlugins/header.js new file mode 100644 index 0000000..c899037 --- /dev/null +++ b/lib/playerPlugins/header.js @@ -0,0 +1,15 @@ + module.exports=inject; + +function inject(serv, player) +{ + function playerlistUpdateText(header, footer) { + player._client.write('playerlist_header', { + header: JSON.stringify(header), + footer: JSON.stringify(footer) + }); + } + + playerlistUpdateText("Flying squid", "Test server") + + player.playerlistUpdateText=playerlistUpdateText; +}