继[原创]如何用ChestCommands实现指定vip用户组随身工具台/末影箱之后又一干货经验献给各位小白服主~
咱们还是接着上一篇的故事讲哈……小明收到赞助以后忙不过来,玩家说要弄个小游戏世界可让小明伤透了脑筋。小游戏倒是不难弄,像[娱乐]Hot Potato——一款刺激风靡全球的小游戏插件 完全汉化[1.6-1.8]、[娱乐|小游戏]BlockHunt —— 精品躲猫猫插件 [1.6.2-1.7.2]这些小游戏插件MC服主网上都有。不过小游戏世界里的权限必须得跟主世界里不一样呀要不然不全乱套在小游戏世界vip还能飞那还了得?飞行严重影响部分小游戏的体验,所以我们得想个办法分隔不同世界的权限。
首先,有关权限管理上篇已经提到了不少本篇就不在阐述。我们打开GroupManager/config.yml文件,看到如下格式。
settings: config: # With this enabled anyone set as op has full permissions when managing GroupManager # The user will be able to promote players to the same group or even above. opOverrides: true # Default setting for 'mantogglevalidate' # true will cause GroupManager to attempt name matching by default. validate_toggle: true # ************************************************************************************************************************************************************ # *** NOTE: Having this feature enabled can allow improper use of Command Blocks which may lead to undesireable permission changes. You have been warned! *** # ************************************************************************************************************************************************************ allow_commandblocks: false data: save: # How often GroupManager will save it's data back to groups.yml and users.yml minutes: 10 # Number of hours to retain backups (plugins/GroupManager/backup) hours: 24 logging: # Level of detail GroupManager will use when logging. # Acceptable entries are - ALL,CONFIG,FINE,FINER,FINEST,INFO,OFF,SEVERE,WARNING level: ALL mirrors: # Worlds listed here have their settings mirrored in their children. # The first element 'world' is the main worlds name, and is the parent world. # subsequent elements 'world_nether' and 'world_the_end' are worlds which will use # the same user/groups files as the parent. # the element 'all_unnamed_worlds' specifies all worlds that aren't listed, and automatically mirrors them to it's parent. # Each child world can be configured to mirror the 'groups', 'users' or both files from its parent. MAIN: - ZY - DiYu - MoJie - plotworld duo: # world2: (World2 would have it's own set of user and groups files) # world3: # - users (World3 would use the users.yml from world2, but it's own groups.yml) # world4: # - groups (World4 would use the groups.yml from world2, but it's own users.yml) # world5: # - world6 (this would cause world6 to mirror both files from world5)
如果只是简单的区分世界无需细分用户组跟用户的话,我们只需要在这里做做手脚就行。
mirrors: MAIN: - ZY - DiYu - MoJie - plotworld duo:
在mirrors项下看到如此结构,这个结构代表——MAIN作为主世界与ZY、DiYu、MoJie、plotworld共享所有权限。(原谅站长脑残的命名方式这就是站长开服时的命名方式- -)而duo作为小游戏世界拥有独立于其他世界的权限系统,在MAIN、ZY、DiYu、MoJie、plotworld世界所进行的权限操作仅对除duo的世界有效。
当然还有其他配置方式能够使得不同世界只继承users.yml(特定用户的权限)或groups.yml(用户组权限)。
world: world_nether: - users - groups world_the_end: - users - groups mcfuzhu: - users //只继承主世界的users.yml,不继承groups.yml all_unnamed_worlds: - users - groups
这表明末界、地狱与其他未指明的世界均继承世界world的所有权限,但mcfuzhu世界只继承users,不继承groups。这样我们就可以设置制定世界mcfuzhu不能进行建造等多方面扩展用途,在mcfuzhu世界给予builder用户组“-essentials.build.*”负节点即可。
下一次MC服主网将给大家介绍多世界背包分隔的有用插件MultiInv!