Sueta
BA

BanSystem

1.5

A ban system plugin

·Plugin

Description:
BanSystem includes commands wich allows you to ban, unban players.

Features:
- Ban a player permanently
- Ban a player with a specified time
- Unban a player
- Mute a player permanently
- Mute a player with a specified time
- Unmute a player

- Database connection or hard disk saving system

Commands:

/ban <player> perm <reason> : Permanent ban
/ban <player> <duration>:<time unit> <reason> : Temporary ban
/unban <player> : Unban
/mute <player> perm : Permanent mute
/mute <player> <duration>:<time unit> : Temporary mute
/unmute <player> : Unmute
/bansystem : Basic plugin command

Time units :

  • sec: Seconds
  • min: Minutes
  • h: Hours
  • d: Days
  • m: Months

Configuration:
config.yml
"use_db" : Use database if 'true' or hard disk saving system if 'false'
"url" : Url of the database to connect to
"port" : The port of the connection
"db_name" : The database name you use
"username" : The username of the database
"password" : The password of the database

bans.yml, infos.yml & mutes.yml
This is where banned players and some crucial informations for the plugin are stored. So don't touch these files!

Change your stockage system:
If you want to move your storage from hard disk to database (or the opposite), follow these steps:

  1. Run your server with your default stockage system (ex: hard disk)
  2. While your server is running, change config.yml to the other stockage system (ex: database)
  3. Execute this command: bansystem reload (with a "/" if you are in the game)
  4. Your informations have now been moved to the other stockage system! (ex: database)


Issues:

If you do something the plugin can't stand, you can be blocked because you banned a player but you can't unban him because "This player never came on your server!". It's because player infos are in a stockage system but not in the other one.

  1. Run your server on the stockage system where you have no problems
  2. Follow the steps above to change your stockage system


About:

Current version: 1.4

Similar projects

Plugin →