Chunks
基于 FTB Chunks 的区块认领插件
功能
- 美观的 GUI,无需命令即可轻松浏览地图
- 认领区块 (Claim Chunks)
- 修改特定用户在某个区块的权限
- 修改所有用户在某个区块的权限
- 在区块内启用爆炸效果
- 取消认领区块
- 设置区块认领上限
- 管理员命令:覆盖区块设置并为特定用户设置认领权力
- 支持按世界独立认领
安装
数据库设置
Keii's Chunks 因其代码结构,需要在服务器计算机上运行 MySQL 数据库。目前有一个开箱即用的 SQLite 版本正在开发中,但不保证何时发布。
Debian
安装 MariaDB Server
$ sudo apt update &&
$ sudo apt install mariadb-server &&
$ sudo mysql_secure_installation
为 MariaDB 服务器配置用户
进入 MariaDB 安装环境
$ sudo mariadb
为 Keii's Chunks 创建数据库
MariaDB [(none)]> CREATE DATABASE <database_name>;
创建新用户并授予其访问该数据库的权限
MariaDB [(none)]> CREATE USER '<user_name>'@'localhost' IDENTIFIED BY '<password>';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON `<database_name>`.* TO '<user_name>'@'localhost';
MariaDB [(none)]> FLUSH PRIVILEGES;
更新 config.yml
进入服务器目录下的 plugins/KeiiChunks/config.yml。如果文件不存在则创建它,并将以下内容添加或更新到文件中。
所有尖括号 <> 中的条目与上述 MariaDB 配置中输入的内容相同。
(如果您将数据库安装在非服务器运行所在的另一台机器上,则需要将 dbUrl 更改为 jdbc:mysql://<machine_ip>:3306/)
dbUrl: jdbc:mysql://localhost:3306/
dbName: <database_name>
dbUser: <user_name>
dbPassword: <password>
重启服务器
现在重启服务器,数据库应该已设置完毕。如果您服务器上已有自定义服务器资源包,则需要使用类似 的工具将该资源包与 插件资源包 合并。
如果数据库未自动设置
如果数据库没有自动更新,则需要通过运行以下命令手动更新数据库。
$ mysql -u <user_name> -p <database_name> < database.sql
database.sql 位于 plugin/KeiiChunks 目录下。
Chunks
A claim plugin based on FTB Chunks
Features
- A beautiful gui for easy navigation of the map without commands
- Claim Chunks
- Modify permissions of a chunk for a user
- Modify permissions of a chunk for everyone
- Enable explosions in a chunk
- Unclaim chunks
- Set claim chunk limit
- Admin commands for overriding chunks and setting claim power for specific user
- Per world claims
Installation
Database setup
Keii's Chunks requires a mysql database running on the server computer because of it's code strucutre. A sqlite one that works
out of the box is in the works but no promises on when it will be relased.
Debian
Install MariaDB Server
$ sudo apt update &&
$ sudo apt install mariadb-server &&
$ sudo mysql_secure_installation
Configure a user for the mariadb server
Enter the mariadb installation
$ sudo mariadb
Create a database for keii's chunks
MariaDB [(none)]> CREATE DATABASE <database_name>;
Create a new user and give it access to the database
MariaDB [(none)]> CREATE USER '<user_name>'@'localhost' IDENTIFIED BY '<password>';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON `<database_name>`.* TO '<user_name>'@'localhost';
MariaDB [(none)]> FLUSH PRIVILEGES;
Update config.yml
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.
All of the entries in arrows '<>' are the same as the inputs you put in the above mariadb configuration.
(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/)
dbUrl: jdbc:mysql://localhost:3306/
dbName: <database_name>
dbUser: <user_name>
dbPassword: <password>
Restart the server
Now restart the server and the database should be setup. If you already have custom server resource packs on the server then you will want to merge that resource pack with the plugin resourcepack using something like .
If your database wasn't setup automatically
If the database wasn't updated automatically then you will want to update the database manually by running.
$ mysql -u <user_name> -p <database_name> < database.sql
database.sql is located in plugin/KeiiChunks.
评论 0
登录后参与评分
还没有评论,来抢沙发吧