Skip to content

xap3y/ConSpigot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ConSpigot

Just a WebSocket creating bridge between minecraft server

https://www.spigotmc.org/resources/statuer.114330/

How to use

Drop in into your plugins folder and configure stuff you need in plugins/Statuer/config.json
If you disable password required in config, anyone can control your server and grief it

Examples of usage

Send this JSON as string to your websocket to kick specified player
`{ "type": "player_kick", "player": "notch", "reason": "Noob!", "password": "your_pass_in_cfg"}`

Successful response:
{ "error": false, "message": "Player notch has been kicked with reason: Noob!"}

Error response:
{ "error": true, "message": "Player notch is not online!"}

To listen for events (like player joins/quits):
`{ "type": "start_listener", "password": "your_cool_pass_in_cfg"}`

Player join:
{ "type": "event_playerJoin", "player_info": { "name": "notch", .... } }

Player quit:
{ "type": "event_playerQuit", "player_info": {"name": "notch", "display_name": "notch" }}

On chat message:
{ "type": "event_chat", "player": "notch", "message": "Hello!"}


That is not all, I'm just lazy to add it all here

Build

Java CI with Maven