• 欢迎来到Minecraft插件百科!
  • 对百科编辑一脸懵逼?帮助:快速入门带您快速熟悉百科编辑!
  • 因近日遭受攻击,百科现已限制编辑,有意编辑请加入插件百科企鹅群:223812289

教程/GroupManager

来自Minecraft插件百科
Iwar讨论 | 贡献2015年2月8日 (日) 08:42的版本 (应用模板并部分修改)
跳转至: 导航搜索

多世界,世界独立权限文件

本文属于教程
下面的代码路径位于 /plugins/GroupManager/config.yml中 修改插件配置文件的一般流程:

  • 右键以文本方式编辑(.yml .json .txt .pro等后缀名文件)
  • 修改项目代码以后,保存文件(并非另存为)
  • 官服,也就是Minecraft_Server不支持插件和模组(MOD),这里不做讨论
  • Spigot CraftBukkit等只支持插件的服务端可以在控制台输入"reload"或是游戏中输入"/reload"进行重载,即可应用修改的代码
  • 至于支持Mod或是支持插件+Mod的服务端,由于Mod的特殊存在,是无法进行重载的。此时,只有重启服务端,才可以应用修改的代码


mirrors:

       # 此处列出的世界,它们的设置都会镜像到子世界(继承设置的世界).
       # 第一个元素 'world' 为主世界的名称,同时也是母世界(独立的配置,并镜像给子世界).
       # 其下的元素 'world_nether' 和 'world_the_end' 将使用与母世界相同的user/groups文件
       # 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.
       world:
         world_nether:
         - users
         - groups
         world_the_end:
         - users
         - groups
         all_unnamed_worlds:
         - users
         - groups
   #  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)