From b6c73470a4ac6a754a3a277878ed44e89dfebfea Mon Sep 17 00:00:00 2001 From: GeekFrog Date: Sun, 16 Jul 2017 16:44:12 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/config.yml | 21 +++++++++++++++++++++ config/packages.yml | 35 +++++++++++++++++++++++++++++++++++ src/resources/packages.yml | 36 +++++++++++++++++++----------------- 3 files changed, 75 insertions(+), 17 deletions(-) create mode 100644 config/config.yml create mode 100644 config/packages.yml diff --git a/config/config.yml b/config/config.yml new file mode 100644 index 0000000..3d7a4b2 --- /dev/null +++ b/config/config.yml @@ -0,0 +1,21 @@ +# 插件提示前缀. +pluginPrefix: '&4[&b限时权限&4]' +# 是否开启DEBUG模式. +debug: false +# 是否同意插件统计信息. +metrics: true +# 语言文件名称 在'lang'文件夹内. +lang: zh-cn +# 数据库相关. +mysql: + # 是否使用MySQL数据库. + enable: false + # 服务器唯一标识, 用来区分权限是哪个服务器的. + serverId: default + hostname: localhost + port: 3306 + database: minecraft + username: user + password: '123456' + # 数据库表前缀 + tablePrefix: pt_ diff --git a/config/packages.yml b/config/packages.yml new file mode 100644 index 0000000..6f7b47d --- /dev/null +++ b/config/packages.yml @@ -0,0 +1,35 @@ +# 配置文件版本. +# Config version. +version: 1.00 +# 默认权限组. +# Default permission group. +defaultGroup: Default +packages: +# 权限包名称. +# Permission package name. + example1: + # 权限包显示名称. + # Permission package display name. + displayName: '&4Test Package' + # 显示的物品类型. + # Show the type of item. + type: NETHER_STAR + # 标签. + # Lores. + lores: + - '&2This is a test lore.' + # 是否跨服权限? + # Is multiple server permission? + global: false + # 权限包含有的权限 world1、world2、world3是赋值给玩家permission2权限的世界. + # 如果所有世界都赋值权限则不用注明世界名称如:permission1. + # Package contain permissions. + # Add ':world1' at the end can restrict permissions used in 'world1'. + permissions: + - permission1 + - permission2:world1:world2:world3 + # 权限包含有的权限组. + # Package contain groups. + groups: + - group1 + - group2:world1 diff --git a/src/resources/packages.yml b/src/resources/packages.yml index 41dca79..6f7b47d 100644 --- a/src/resources/packages.yml +++ b/src/resources/packages.yml @@ -1,33 +1,35 @@ +# 配置文件版本. +# Config version. version: 1.00 -# 默认权限组 -# Default permission group +# 默认权限组. +# Default permission group. defaultGroup: Default packages: -# 权限包名称 -# Permission package name +# 权限包名称. +# Permission package name. example1: - # 权限包显示名称 - # Permission package display name + # 权限包显示名称. + # Permission package display name. displayName: '&4Test Package' - # 显示的物品类型 - # Show the type of item + # 显示的物品类型. + # Show the type of item. type: NETHER_STAR - # 标签 - # Lores + # 标签. + # Lores. lores: - '&2This is a test lore.' - # 是否跨服权限 + # 是否跨服权限? # Is multiple server permission? global: false - # 权限包含有的权限 world1、world2、world3是赋值给玩家permission2权限的世界 - # 如果所有世界都赋值权限则不用注明世界名称如:permission1 - # Package contain permissions - # Add ':world1' at the end can restrict permissions used in 'world1' + # 权限包含有的权限 world1、world2、world3是赋值给玩家permission2权限的世界. + # 如果所有世界都赋值权限则不用注明世界名称如:permission1. + # Package contain permissions. + # Add ':world1' at the end can restrict permissions used in 'world1'. permissions: - permission1 - permission2:world1:world2:world3 - # 权限包含有的权限组 - # Package contain groups + # 权限包含有的权限组. + # Package contain groups. groups: - group1 - group2:world1