1
1
mirror of https://github.com/geekfrog/PermissionsTime.git synced 2024-11-22 15:48:51 +00:00
This commit is contained in:
GeekFrog 2017-07-16 15:15:22 +08:00
parent 76e4e38586
commit 14baf52e7d
4 changed files with 48 additions and 40 deletions

View File

@ -47,32 +47,31 @@ public class LangCfg extends PluginConfig {
@Override @Override
protected void loadToDo() { protected void loadToDo() {
INVENTORY_NAME = setGetDefault("inventoryName", "&4===Permissions Packages==="); INVENTORY_NAME = getConfig().getString("inventoryName", "&4===Permissions Packages===");
EXPIRATION_DATE = setGetDefault("expirationDate", "&4Expiration date: {0}"); EXPIRATION_DATE = getConfig().getString("expirationDate", "&4Expiration date: {0}");
MSG_PARAMETER_MISMATCH = setGetDefault("msg.parameterMismatch", "&4Parameter mismatch."); MSG_PARAMETER_MISMATCH = getConfig().getString("msg.parameterMismatch", "&4Parameter mismatch.");
MSG_DAYS_PARAMETER_INCORRECT = setGetDefault("msg.daysParameterIncorrect", "&4The number of days is incorrect. Please enter a positive integer."); MSG_DAYS_PARAMETER_INCORRECT = getConfig().getString("msg.daysParameterIncorrect", "&4The number of days is incorrect. Please enter a positive integer.");
MSG_PROCESSING = setGetDefault("msg.processing", "&2Please wait for processing..."); MSG_PROCESSING = getConfig().getString("msg.processing", "&2Please wait for processing...");
MSG_NO_DATA = setGetDefault("msg.noData", "&4No data for packages."); MSG_NO_DATA = getConfig().getString("msg.noData", "&4No data for packages.");
MSG_PACKAGE_NUM = setGetDefault("msg.packageNum", "&4There are {0} kinds of permissions packages."); MSG_PACKAGE_NUM = getConfig().getString("msg.packageNum", "&4There are {0} kinds of permissions packages.");
MSG_PACKAGE_LIST = setGetDefault("msg.packageList", "{0}packageName: {1}, displayName: {2}"); MSG_PACKAGE_LIST = getConfig().getString("msg.packageList", "{0}packageName: {1}, displayName: {2}");
MSG_PACKAGE_DETAIL = setGetDefault("msg.packageDetail", "packageName: {0}, displayName: {1}&r\\nPermissions: {2}\\nGroups: {3}"); MSG_PACKAGE_DETAIL = getConfig().getString("msg.packageDetail", "packageName: {0}, displayName: {1}&r\\nPermissions: {2}\\nGroups: {3}");
MSG_NO_PERMISSION = setGetDefault("msg.nopermission", "&4You do not have permission to do this."); MSG_NO_PERMISSION = getConfig().getString("msg.nopermission", "&4You do not have permission to do this.");
MSG_CONFIG_RELOADED = setGetDefault("msg.configReloaded", "&2Configuration overload is complete."); MSG_CONFIG_RELOADED = getConfig().getString("msg.configReloaded", "&2Configuration overload is complete.");
MSG_FAIL_SET_PERMISSION = setGetDefault("msg.failSetPermission", "&4Failed to modify permissions. Please re-enter the server!"); MSG_FAIL_SET_PERMISSION = getConfig().getString("msg.failSetPermission", "&4Failed to modify permissions. Please re-enter the server!");
MSG_NO_FIND_PLAYER = setGetDefault("msg.noFindPlayer", "&4Can not find player named &2{0}"); MSG_NO_FIND_PLAYER = getConfig().getString("msg.noFindPlayer", "&4Can not find player named &2{0}");
MSG_NO_FIND_PACKAGE = setGetDefault("msg.noFindPackage", "&4Can not find package named &2{0}"); MSG_NO_FIND_PACKAGE = getConfig().getString("msg.noFindPackage", "&4Can not find package named &2{0}");
MSG_TELL_GIVE_PACKAGE = setGetDefault("msg.tellGivePackage", "&2{0} give you {1}days package of {2}"); MSG_TELL_GIVE_PACKAGE = getConfig().getString("msg.tellGivePackage", "&2{0} give you {1}days package of {2}");
MSG_GIVE_PACKAGE = setGetDefault("msg.givePackage", "&2Give the player {0} {1}days package of {2}"); MSG_GIVE_PACKAGE = getConfig().getString("msg.givePackage", "&2Give the player {0} {1}days package of {2}");
MSG_GIVE_PACKAGE_FAIL = setGetDefault("msg.givePackageFail", "&4Failed to give players {0} {1}days package of {2}"); MSG_GIVE_PACKAGE_FAIL = getConfig().getString("msg.givePackageFail", "&4Failed to give players {0} {1}days package of {2}");
MSG_TELL_SET_PACKAGE = setGetDefault("msg.tellSetPackage", "&2{0} set your package of {2} to {1}days"); MSG_TELL_SET_PACKAGE = getConfig().getString("msg.tellSetPackage", "&2{0} set your package of {2} to {1}days");
MSG_SET_PACKAGE = setGetDefault("msg.setPackage", "&2Set the player {0} {1}days package of {2}"); MSG_SET_PACKAGE = getConfig().getString("msg.setPackage", "&2Set the player {0} {1}days package of {2}");
MSG_SET_PACKAGE_FAIL = setGetDefault("msg.setPackageFail", "&4Failed to set the player {0} {1}days package of {2}"); MSG_SET_PACKAGE_FAIL = getConfig().getString("msg.setPackageFail", "&4Failed to set the player {0} {1}days package of {2}");
MSG_TELL_DEL_PACKAGE = setGetDefault("msg.tellDelPackage", "&4{0} deleted your package of {1}"); MSG_TELL_DEL_PACKAGE = getConfig().getString("msg.tellDelPackage", "&4{0} deleted your package of {1}");
MSG_DEL_PACKAGE = setGetDefault("msg.delPackage", "&2Remove package of {1}&2 for player {0}"); MSG_DEL_PACKAGE = getConfig().getString("msg.delPackage", "&2Remove package of {1}&2 for player {0}");
MSG_DEL_PACKAGE_FAIL = setGetDefault("msg.delPackageFail", "&4Failed to delete package of {1}&2 for player {0}"); MSG_DEL_PACKAGE_FAIL = getConfig().getString("msg.delPackageFail", "&4Failed to delete package of {1}&2 for player {0}");
MSG_TELL_DEL_ALL = setGetDefault("msg.tellDelAll", "&4{0} remove all your packages"); MSG_TELL_DEL_ALL = getConfig().getString("msg.tellDelAll", "&4{0} remove all your packages");
MSG_DEL_ALL = setGetDefault("msg.delAll", "&2Remove all packages for player {0}"); MSG_DEL_ALL = getConfig().getString("msg.delAll", "&2Remove all packages for player {0}");
MSG_DEL_ALL_FAIL = setGetDefault("msg.delAllFail", "&4Failed to remove all packages for player {0}"); MSG_DEL_ALL_FAIL = getConfig().getString("msg.delAllFail", "&4Failed to remove all packages for player {0}");
} }
} }

View File

@ -1,24 +1,33 @@
version: 1.00 version: 1.00
# 默认权限组 # 默认权限组
# Default permission group
defaultGroup: Default defaultGroup: Default
packages: packages:
# 权限包名称 # 权限包名称
# Permission package name
example1: example1:
# 权限包显示名称 # 权限包显示名称
displayName: '&4权限包模板1' # Permission package display name
displayName: '&4Test Package'
# 显示的物品类型 # 显示的物品类型
# Show the type of item
type: NETHER_STAR type: NETHER_STAR
# 标签 # 标签
# Lores
lores: lores:
- '&2这是权限包模板的标签' - '&2This is a test lore.'
# 是否跨服权限 # 是否跨服权限
# Is multiple service permission?
global: false global: false
# 权限包含有的权限 world1、world2、world3是赋值给玩家permission2权限的世界 # 权限包含有的权限 world1、world2、world3是赋值给玩家permission2权限的世界
# 如果所有世界都赋值权限则不用注明世界名称如permission1 # 如果所有世界都赋值权限则不用注明世界名称如permission1
# Package contain permissions
# Add ':world1' at the end can restrict permissions used in 'world1'
permissions: permissions:
- permission1 - permission1
- permission2:world1:world2:world3 - permission2:world1:world2:world3
# 权限包含有的权限组 # 权限包含有的权限组
# Package contain groups
groups: groups:
- group1 - group1
- group2:world1 - group2:world1