diff --git a/config/config.yml b/config/config.yml index 14760b0..be1f97c 100644 --- a/config/config.yml +++ b/config/config.yml @@ -7,6 +7,9 @@ debug: false # 是否同意插件上传统计信息. # Whether or not you agree with the plugin to upload statistics. metrics: true +# 开启称号系统. +# Use prefix system. +tagSystem: false # 语言文件名称 在'lang'文件夹内. # Language file name. lang: en @@ -14,9 +17,10 @@ lang: en # Database settings. mysql: # 是否使用MySQL数据库. - # Whether to use the MySQL database. + # Use the MySQL database? enable: false # 服务器唯一标识, 用来区分权限是哪个服务器的. + # 想要权限跨服,serverId必须一致. # Server ID. serverId: default hostname: localhost diff --git a/config/plugin.yml b/config/plugin.yml new file mode 100644 index 0000000..0fbdf72 --- /dev/null +++ b/config/plugin.yml @@ -0,0 +1,57 @@ +name: PermissionsTime +version: 0.4.0-SNAPSHOT +main: gg.frog.mc.permissionstime.PluginMain +author: GeekFrog +softdepend: +- SQLibrary +- Vault +- PlaceholderAPI +commands: + permissionstime: + description: Show all commands. + usage: /permissionstime [param] + pt: + description: Aliases commands for permissionstime. + usage: /pt [param] +permissions: + permissionstime.*: + description: Gives access to all PermissionsTime commands. + default: op + children: + permissionstime.me: true + permissionstime.tag: true + permissionstime.reload: true + permissionstime.give: true + permissionstime.set: true + permissionstime.get: true + permissionstime.remove: true + permissionstime.removeall: true + permissionstime.packages: true + permissionstime.me: + description: View your packages. + default: true + permissionstime.tag: + description: View your color/prefix/suffix tags. + default: true + permissionstime.reload: + description: Reloads the config file. + default: op + permissionstime.give: + description: Give player package some time. + default: op + permissionstime.set: + description: Set player package some time. + default: op + permissionstime.get: + description: View player packages. + default: op + permissionstime.remove: + description: Remove player package. + default: op + permissionstime.removeall: + description: Remove player all package. + default: op + permissionstime.packages: + description: View packages. + default: op + \ No newline at end of file diff --git a/config/tagNames.yml b/config/tagNames.yml new file mode 100644 index 0000000..43bb7da --- /dev/null +++ b/config/tagNames.yml @@ -0,0 +1,53 @@ +# 默认昵称样式. +# Default Name Color. +defaultNamecolor: '&6' +# 默认前缀. +# Default Prefix. +defaultPrefix: '' +# 默认后缀. +# Default Suffix. +defaultSuffix: '' +packages: +# 称号包名称. +# Tag package name. + example1: + # 称号包描述,可以填写如何获得这些称号. + # Tag package describes. You can type how to get these tag. + description: '&4Tag package description.' + # 称号包所需权限. 不需要权限请留空,输入 '' + # Tag package needs permission. Keep null to make no permission. + permissions: '' + # 称号包所含的昵称样式. + # Name Colors. + namecolor: + - '&3' + - '&4:SKULL_ITEM:5' + - '&5:SKULL_ITEM:MHF_Present1' + # 称号包所含的昵称前缀. + # Name prefix. + prefix: + - '&3[prefix]' + - '&4[prefix]:1' + # 称号包所含的昵称后缀. + # Name suffix. + suffix: + - '&3[suffix]' + - '&4[suffix]:1:6' + vip: + description: '&4VIP Tags.' + permissions: 'player.vip' + namecolor: + - '&3&l' + - '&4&n:SKULL_ITEM:5' + - '&5&o:SKULL_ITEM:MHF_Present1' + # 称号包所含的昵称前缀. + # Name prefix. + prefix: + - '&3&l[prefix]' + - '&4&n[prefix]:1' + # 称号包所含的昵称后缀. + # Name suffix. + suffix: + - '&3&o[suffix]' + - '&4&l&n[suffix]:1:6' + \ No newline at end of file