Skip to content

Simple Ban plugin with ORM Mysql and DI via Google Guice

License

Notifications You must be signed in to change notification settings

Cylop/playlegend-ban

Repository files navigation

Playlegend Ban Plugin

Simple Ban plugin that uses ORM with Mysql and DI via Google Guice

[Latest release Love

1. Usage

If you want to use this plugin, keep in mind that it's still in development and bugs may occurr. I haven't found any so far but If you do, please add an Issue.

Go to releases and download the latest .jar. The version v0.0.1-alpha supports Spigot 1.18. After the first run you will find a directory in the plugins folder with the name "PlaylegendBans". Go into that directory, open config.yml and set the mysql credentials. Without that set, the plugin won't start.

2. Commands

The plugin provides 2 commands. One for ban and one for unban.

Ban

Usage: /ban <player> [duration] [message or reason]

Alias: b
Permission: playlegend.ban

Bans the specifed player for a specific amount of time (duration) and with a message.

Default Values

Argument Default value Configurable
Duration 999y
Message Unbekannter Grund X

For the format of the duration see section 3 (Duration Format)

Unban

Usage: /unban <player>

Alias: ub
Permission: playlegend.unban

3. Duration Format

The duration for a ban can be provided in a simple format.

For example like this: 3M7d will be translated to 3 months and 7 days those will be added to the current date

In action: /ban Notch 3M7d Cheating

Allowed units

Unit Timeunit
y Year
M Month
w Week
d Day
h Hour
s Second

Duration can be changed as long as you wish. 1y7M7w1s10h3d2y9h4M27s is also working.

About

Simple Ban plugin with ORM Mysql and DI via Google Guice

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages