mirror of
https://github.com/danbulant/flying-squid
synced 2026-07-06 19:50:40 +00:00
Create header.js
This commit is contained in:
parent
6f7fda93a0
commit
6ba4aaaa2e
1 changed files with 15 additions and 0 deletions
15
lib/playerPlugins/header.js
Normal file
15
lib/playerPlugins/header.js
Normal file
|
|
@ -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;
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue