test
You can change the:
- Server name
- Starting position
- Maximum number of connections per host
- Whether passwords are hashed
by editting the server config file in /data/settings.json
.
Note: If you change the hash passwords variable any existing accounts will be rendered inaccessible, unless if you change it back.
Add a new variable into the PlayerAttributes class (under com.rs.entity.player). The next time a player logs in and out it their save file will be updated with no problems!
Add any commands into the Groovy script in the CommandHandler class (under /plugins/bindings/packets/).
Create a Groovy class file (i.e. something .groovy
) extending an EventListener
(or multiple) under /plugins/
.
You can find a full list of listeners under com.rs.plugin.listener
.
Each listener will give your script some information regarding the server.
Firstly, create a new subclass of EventListener
in com.rs.plugin.listener
.
Next, add this interface to the Bootstrap
interface.
Make sure you implement and handle this method, analogously to the others in GroovyBootstrap
.
Finally, create a corresponding static dispatch*
in PluginHandler
.
Make sure that this dispatch method is called whenever this event occurs.