Project Reality Intelligent Server Manager
PRISM is a powerful administration tool. This tool allows admins to keep an eye on the players in the server as if you were in the game itself, by allowing you to view the map, list of players, chat, and interact using all of the normal RealityAdmin commands.
Disclaimer
This is a project that aim to make interactice with the PRISM server easier, it is not a official project from the PRISM team, and it is not supported by them. If you have any issues with the tool, please open an issue in the github repo. If you have any issues with the PRISM server, please contact the PRISM team.
Installation
npm install @manh21/prism
Usage
import PRISM from "@manh21/prism";
const prism = new PRISM({
host: "127.0.0.1",
port: 1234,
username: "admin",
password: "password",
});
Commands
This command availabel via the send_raw_command
function.
say <message>
- Send a message to the serversayteam <team> <message>
- Send a message to specific team in the server (1 bluefor | 2 opfor)serverdetailsalawys
- Alawys Show server detailsserverdetails
- Show server details when server readygameplaydetails
- List of Map Detailslistplayers
- List all players in the servergetusers
- List all prism users in the serveradduser
- Add a prism user to the serverchangeuser
- Change a prism user in the serverdeleteuser
- Delete a prism user from the serverreadmaplist
- List all maps in the serverreadbanlist
- List all ban player in the serverapiadmin
- Send a Reality Admin Command to the server
Reality Admin Commands
This command availabel via the send_command
function. Wrapper for apiadmin
command.
args should be a list like ["setnext", "kashan", "cq", "std"]
kick <player>
- Kick a player from the serverban <player>
- Ban a player from the serverunban <player>
- Unban a player from the servermute <player>
- Mute a player from the serverunmute <player>
- Unmute a player from the servermove <player> <team>
- Move a player to a teamsetnext <map>
- Set the next map- more... - Check the RCON Commands Wiki for more commands
Available functions
send_command(...args)
- Send a Reality Admin Command to the serversend_raw_command(subject, ...args)
- Send a raw command to the serverlogin()
- Login to the serverdisconnect()
- Disconnect from the serverreconnect()
- Reconnect to the server
Available events
connect
- Fired when the client is connected to the serverdisconnect
- Fired when the client is disconnected from the serverlog
- Fired when the PRISM log somethingerror
- Fired when the PRISM log an errorgame
- Fired when the PRISM log a game message chat responseadminalert
- Fired when the PRISM log an admin alert chat responseresponse
- Fired when the PRISM log a response after issuing a commandAPIAdminResult
- Fired when the PRISM log a response after issuing a Reality Admin Commandmaplist
- Fired when the PRISM recive a map listserverdetails
- Fired when the PRISM recive a server details
Credit
This project is based on the work of PRISMBot. Checkout the original project for more information.