Coder Social home page Coder Social logo

pearxteam / cwl Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 125 KB

Custom Whitelist Message plugin for Sponge-based Minecraft servers.

License: GNU General Public License v3.0

Java 80.94% Kotlin 19.06%
sponge sponge-api minecraft java java-8 sql whitelist gradle

cwl's Introduction

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.

cwl's People

Contributors

mrapplexz avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

stonebound

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.