Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pearxteam/cwl
Custom Whitelist Message plugin for Sponge-based Minecraft servers.
https://github.com/pearxteam/cwl
gradle java java-8 minecraft sponge sponge-api sql whitelist
Last synced: about 1 month ago
JSON representation
Custom Whitelist Message plugin for Sponge-based Minecraft servers.
- Host: GitHub
- URL: https://github.com/pearxteam/cwl
- Owner: pearxteam
- License: gpl-3.0
- Created: 2017-02-24T04:13:50.000Z (almost 8 years ago)
- Default Branch: sponge-api-7
- Last Pushed: 2018-07-23T09:42:29.000Z (over 6 years ago)
- Last Synced: 2024-11-10T09:19:04.470Z (3 months ago)
- Topics: gradle, java, java-8, minecraft, sponge, sponge-api, sql, whitelist
- Language: Java
- Homepage:
- Size: 122 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
# CWL
Custom Whitelist plugin for Sponge-based Minecraft servers.# Custom Message
CWL allows you to change the default message for non-whitelisted players in its config file.# Autogen
For config, see the `Config file` section.CWL allows you to automatically generate the whitelist.json file using a remote SQL database. This will be useful if you have your own Minecraft server with a
website with registration and whitelist requests, for example.To generate it, execute a command "/cwl whitelist".
CWL also can automatically sync the whitelist in background with the specified interval.
# Reloading the plugin
You can execute the "/cwl reload" command to reload the config and restart the autosync task.# Config file
```
main {
whitelist="Send a whitelist request firstly!"
db_connection="jdbc:mysql://localhost/lc?user=YOUR_USERNAME&password=YOUR_PASSWORD"
db_query="SELECT `username`, `uuid` from `players` WHERE `access` = 2;"
sync_delay=600
}
```The `whitelist` field is a custom message that will be shown to the not whitelisted player when he joins the server. See the `Custom Message` section.
The `db_connection` field is a JDBC connection string. The format is `jdbc:CONNECTOR://HOST/TABLE?user=USERNAME&password=PASSWORD`. This also will accept an alias set up in the Sponge config. See the `Autogen` section.
The `db_query` field is a SQL query string that will be used to get list of whitelisted users. Should return two columns: username and UUID. See the `Autogen` section.
The `sync_delay` field is an interval in seconds used to automatically sync the whitelist in background. Set to `0` to disable the autosyncing. See the `Autogen` section.
You can reload the config in runtime, see the `Reloading the plugin` section.