A node.js wrapper that enables people to make Assetto Corsa multiplayer server plugin easily.
- Support for all the features available in official C# example
> npm install --save acserver-plugin
const server = require('acserver-plugin');
const app = new server.PluginApp();
app.on(server.PROTOCOLS.NEW_SESSION, (data) => {
console.log('New Session');
console.log(data);
});
app.on(server.PROTOCOLS.CHAT, (data) => {
app.getCarInfo(data[0]);
if (data[1] === '!kick me') {
app.kick(data[0]);
}
});
app.on(server.PROTOCOLS.CAR_INFO, (data) => {
console.log(data);
})
app.run(12001);
This project is licensed under the MIT License.