Teeworlds External Console
Teeworlds external console client.
Installation
Install via npm:
npm install --save teeworlds-econ
Configure Teeworlds external console:
ec_port 8303
ec_password secret
ec_output_level 2
Usage
Initialize and connect
const TeeworldsEcon = ; const host = 'localhost'const port = 8303const password = 'secret' const econ = host port password; econ; econ; econ;
Handling game events
econ; econ; econ; econ; econ;
Commands
econ; // Send message to chatecon; // Set message of the dayeconstatus;econ;
All supported game events
enter { player, team, client }
leave { player, client }
pickup { player, weapon, client }
chat { type, player, message, team, client }
kill { killer, victim, weapon, killerClient, victimClient }
flaggrab { player, client }
flagreturn {}
capture { player, client }
netban { ip, reason, minutes, life }
License
MIT