MySQL
This is the configuration to use for MySQL. It has to be in the file config/permissionmanager/config.conf
. If the file doesn't exist, create it. Then copy the configuration below and paste it into the file.
Settings
Each settings of the configuration have a different purpose.
server
: It will be the name of your server into the database. This name should be unique. Example below.database
: It is the database the plugin will use. Don't change this setting.mysql.password
: This is the password of the account to use to connect to the database.mysql.username
: This is the username of the account to use to connect to the database.mysql.url
: This is the url to use to connect to the database.
Configuration
server=default
database=mysql
mysql {
password=root
username=root
url=localhost
}
Example
To connect to your MySQL database, you have an account named root
with the password passw0rd
and the url of the database is 123.21.34.54:5786. Your configuration should be like this.
server=your_server_name
database=mysql
mysql {
password=passw0rd
username=root
url=123.21.34.54:5786
}
Also, the server setting is important. If you have two servers and you want to set permissions/options/parents specifically for each one you will need this setting. The server value will be used in some commands.
Example, you have a survival server and a creative server. You should do something like this.
folder_survival_server/config/permissionmanager/config.conf
server=survival
database=mysql
mysql {
password=passw0rd
username=root
url=123.21.34.54:5786
}
folder_creative_server/config/permissionmanager/config.conf
server=creative
database=mysql
mysql {
password=passw0rd
username=root
url=123.21.34.54:5786
}
With a configuration like this, you will be able to set permissions/options/parents per server. If you want to set the permission permissionmanager
only for the server survival
, you will do this: /pm user user_to_set_permission set permission permissionmanager -s survival
Updated over 7 years ago