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

“教程/GroupManager”的版本间的差异

来自Minecraft插件百科
跳转至: 导航搜索
(粗略修改)
1个标签mobile edit
(教程“独立不同世界的权限配置文件” Done)
1个标签mobile edit
 
(未显示同一用户的3个中间版本)
第1行: 第1行:
=多世界,世界独立权限文件=
+
=独立不同世界的权限配置文件=
"""本文属于教程"""
+
'''本文属于教程'''
 +
<br>
 
下面的代码路径位于 /plugins/GroupManager/config.yml中
 
下面的代码路径位于 /plugins/GroupManager/config.yml中
以文本方式打开编辑。
+
<br>
 +
{{模板:应用修改文件}}
 
mirrors:
 
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.
+
         # 第一个元素 'world' 为主世界的名称,同时也是母世界(独立的配置,并镜像给子世界).
         # subsequent elements 'world_nether' and 'world_the_end' are worlds which will use
+
         # 其下的元素 'world_nether' 'world_the_end' 将使用与母世界相同的user/groups文件
        # the same user/groups files as the parent.
+
         # 元素'all_unnamed_worlds' 定义了所有未在列表中的世界,同时自动母世界镜像配置文件.<这就是为什么一般情况下,所有世界都共用一种配置,因为它们默认地继承了主世界的配置>
         # the element 'all_unnamed_worlds' specifies all worlds that aren't listed, and automatically mirrors them to it's parent.
+
         # 每个子世界都可以选择从母世界镜像的文件, 'groups', 'users' 或是两者皆有.
         # Each child world can be configured to mirror the 'groups', 'users' or both files from its parent.
 
 
         world:
 
         world:
 
           world_nether:
 
           world_nether:
第20行: 第21行:
 
           - users
 
           - users
 
           - groups
 
           - groups
     #  world2:      (World2 would have it's own set of user and groups files)
+
     #  world2:      (world2将会独立 user和groups文件)<此处是关键,后面会有实例>
 
     #    world3:
 
     #    world3:
     #    - users    (World3 would use the users.yml from world2, but it's own groups.yml)
+
     #    - users    (world3将会镜像world2的users.yml文件, 但它的 groups.yml文件将会独立)<自由运用哦~>
 
     #    world4:
 
     #    world4:
     #    - groups  (World4 would use the groups.yml from world2, but it's own users.yml)
+
     #    - groups  (world4将会镜像world2的groups.yml文件, 但它的 uset.yml文件将会独立)<自由运用哦~>
 
     #  world5:
 
     #  world5:
     #    - world6  (this would cause world6 to mirror both files from world5)
+
     #    - world6  (此时,world6将完全镜像world5的配置)
 +
<br>
 +
  实例(注意代码的缩进,建议使用Notepad++等文本编辑器进行编辑)
 +
<br>
 +
        world:
 +
          world_nether:
 +
          - users
 +
          - groups
 +
          world_the_end:
 +
          - users
 +
          - groups
 +
          all_unnamed_worlds:
 +
          - users
 +
          - groups
 +
        building:  #独立building世界
 +
        entertainment:
 +
          skyland:
 +
          -users  #镜像users.yml
 +
          paintball:
 +
          - users
 +
          -groups  #全部镜像
 +
<br>
 +
  完。

2015年2月8日 (日) 09:04的最新版本

独立不同世界的权限配置文件

本文属于教程
下面的代码路径位于 /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文件
       # 元素'all_unnamed_worlds' 定义了所有未在列表中的世界,同时自动母世界镜像配置文件.<这就是为什么一般情况下,所有世界都共用一种配置,因为它们默认地继承了主世界的配置>
       # 每个子世界都可以选择从母世界镜像的文件, 'groups', 'users' 或是两者皆有.
       world:
         world_nether:
         - users
         - groups
         world_the_end:
         - users
         - groups
         all_unnamed_worlds:
         - users
         - groups
   #  world2:      (world2将会独立 user和groups文件)<此处是关键,后面会有实例>
   #    world3:
   #    - users    (world3将会镜像world2的users.yml文件, 但它的 groups.yml文件将会独立)<自由运用哦~>
   #    world4:
   #    - groups   (world4将会镜像world2的groups.yml文件, 但它的 uset.yml文件将会独立)<自由运用哦~>
   #  world5:
   #    - world6   (此时,world6将完全镜像world5的配置)


 实例(注意代码的缩进,建议使用Notepad++等文本编辑器进行编辑)


       world:
         world_nether:
         - users
         - groups
         world_the_end:
         - users
         - groups
         all_unnamed_worlds:
         - users
         - groups
       building:  #独立building世界
       entertainment:
         skyland:
         -users  #镜像users.yml
         paintball:
         - users
         -groups  #全部镜像


 完。