Step 1: Backup any database or config files.
Step 2: Place both PunishmentGUI and your punishment plugin on each SPIGOT server not BUNGEECORD.
Step 3: Enter the MySQL details for your database into your punishment plugin's config file.
sql:# H2, MySQL, MariaDB, and PostgreSQL are supported database drivers.driver: H2## MySQL/PostgreSQL settings ### If using H2, the database will be stored in the LiteBans plugin folder,# and most of these settings won't apply.# Database server address.address: localhost:3306# Database name, username and password.database: 'litebans'username: ''password: ''table_prefix: 'litebans_'
sql:# H2, MySQL, MariaDB, and PostgreSQL are supported database drivers.driver: MySQL## MySQL/PostgreSQL settings ### If using H2, the database will be stored in the LiteBans plugin folder,# and most of these settings won't apply.# Database server address.address: yourmysqlport:3306# Database name, username and password.database: 'yourmysqldatabasename'username: 'yourmysqlusername'password: 'yourmysqlpassword'table_prefix: 'litebans_'
Step 4: Enable any settings which allow punishments to sync. (Make sure to set the server name if the plugin allows)
# If this option is enabled and the server is connected to a remote database (e.g. MySQL),# LiteBans will synchronize across all servers connected to that database with sync enabled.sync: true# If enabled, broadcasts will be synchronized.sync_broadcasts: true# If enabled, notifications will be synchronized.sync_notifications: true# If enabled, dupeip notifications will be synchronized.# This will appear multiple times if a player joins multiple servers, so you might want to leave this disabled.sync_dupeip_notifications: false# The server name is an identifier used in cross-server synchronization.# It represents a single plugin instance (or group of instances) and can be updated at any time.# If you need per-server bans, you have to change server_name on all instances# The "$serverScope" and "$serverOrigin" variables can be used in messages.# Maximum length is 32 characters.server_name: 'litebans'
Step 5: Repeat the process on every SPIGOT server, if you had your punishment plugin on bungeecord you must remove it.
You can now use PunishmentGUI and your punishment plugin on your network!