NEXTBALL
· Headless host
Docs & token
·
Back to the game
Room
State
Not started
Name
–
Link
–
Copy
Players
0
Token
(get one)
Room name
Host name
Mode
Classic
Futsal
Real Match
Chaos
Max players
Password (optional)
Rated (matches count for the players' rank)
Unlisted (only the link leads in)
Open room
Log
Script
// Runs on this page. NBInit opens the room; see /headless-docs.html for everything it can do. const room = NBInit({ token: 'PASTE-YOUR-TOKEN', roomName: 'My 3v3 room', maxPlayers: 12, mode: 'classic', scoreLimit: 3, timeLimit: 3 }); window.room = room; room.onRoomLink = (link) => console.log('Room link:', link); room.onPlayerJoin = (p) => room.sendChat('Welcome ' + p.name + '!', p.id); room.onTeamGoal = (team, g) => room.sendChat((team === 1 ? 'Red' : 'Blue') + ' scores' + (g.scorerName ? ': ' + g.scorerName : ''));
Run script