Docs

Assic Class

included with inject class, can be used with .on, .once and some function methods.

Events

loadAddon : Emitted when a addon is loaded, returns an object with name.

playerJoin : Emitted when a player joined to server, returns a low level nmp client.

playerKick : Emiited when a player kicked, returns reason of kick.

playerLogin : Emitted when a player successful login, returns an object with playerName and hashedPassword.

playerRegister : Emitted when a player successful register, returns an object with playerName and hashedPassword.

playerLeave : Emitted when a player leave, returns players name.

command : Emitted when console sends command returns command input.

Functions

log (message) : Logs console with Assic console styling.

sendMessage (client, message) : Sends a message by nmp client.

startAuth (client) : If defaultAuth is false, you can send default auth by this function.

Lower Classes

assic.fs : Filesystem representation of NodeJS module.

assic.jsonDB : Official assic jsonDB representation.

assic.defaultDB : Way to using default db.json.

assic.config : To accessing config/config.json.

Variables

assic.defaultAuth : Defaults to true, if you make it false you will disable automatic default auth system.

Last updated

Was this helpful?