acserver-plugin
v1.1.4
Published
acServer-plugin-js =============
Downloads
8
Readme
acServer-plugin-js
A node.js wrapper that enables people to make Assetto Corsa multiplayer server plugin easily.
Key Features
- Support for all the features available in official C# example
Installing
> npm install --save acserver-plugin
Quick Example
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);
License
This project is licensed under the MIT License.