A claim plugin based on FTB Chunks

README

Changed files
+51
+51
README.md
··· 1 + # Keii's Chunks 2 + 3 + A claim plugin based on FTB Chunks 4 + 5 + 6 + # Database setup 7 + 8 + Keii's Chunks requires a mysql database running on the server computer because of it's code strucutre. A sqlite one that works 9 + out of the box is in the works but no promises on when it will be relased. 10 + 11 + # Debian 12 + 13 + ## Install MariaDB Server 14 + ```bash 15 + $ sudo apt update && 16 + $ sudo apt install mariadb-server && 17 + $ sudo mysql_secure_installation 18 + ``` 19 + 20 + ## Configure a user for the mariadb server 21 + 22 + Enter the mariadb installation 23 + ```bash 24 + $ sudo mariadb 25 + ``` 26 + 27 + Create a database for keii's chunks 28 + ``` 29 + MariaDB [(none)]> CREATE DATABASE <database_name>; 30 + ``` 31 + 32 + Create a new user and give it access to the database 33 + ``` 34 + MariaDB [(none)]> CREATE USER '<user_name>'@'localhost' IDENTIFIED BY '<password>'; 35 + MariaDB [(none)]> GRANT ALL PRIVILEGES ON `<database_name>`.* TO '<user_name>'@'localhost'; 36 + MariaDB [(none)]> FLUSH PRIVILEGES; 37 + ``` 38 + 39 + ## Update config.yml 40 + 41 + In the server directory go to `plugins/KeiiChunks/config.yml`. Create the file if it doesn't exist and add/update this to the file. 42 + 43 + All of the entries in arrows '<>' are the same as the inputs you put in the above mariadb configuration. 44 + 45 + (If you installed the database on a machine that isn't the machine the server is running on you want to change the dbUrl to `jdbc:mysql://<machine_ip>:3306/`) 46 + ```yml 47 + dbUrl: jdbc:mysql://localhost:3306/ 48 + dbName: <database_name> 49 + dbUser: <user_name> 50 + dbPassword: <password> 51 + ```