網頁

2012年5月28日

Bukkit 插件 - Essential GroupManager 基本設定教學

Essential GroupManager 是 Essential 中的權限插件。GroupManager 可以建立組別並分配玩家到群組中。安裝後,會自動生成兩個很重要的文件:
  • 組別設定檔:plugins\GroupManager\worlds\world\groups.yml
  • 玩家設定檔:plugins\GroupManager\worlds\world\users.yml
在開始修改設定檔前,建議先安裝 Notepad++ ,因為設定檔所採用的 YML(或稱 YAML)格式相當嚴謹。
此外,YAML 和 Python 一樣都是必須以四個空白作縮排,所以須在 Notepad++ 中作以下設定:

1. 自訂>使用者自訂


2. 程式語言選單 / 欄標(Tab)設定>把「以 SPACE 取代」打勾

各文件詳細設定:

在 "groups.yml" 中:
# Group inheritance
# any inherited groups prefixed with a g: are global groups
# These groups are defined in the globalgroups.yml
# and can be inherited in any worlds groups/users.yml.
#
# Groups without the g: prefix are groups local to this world
# and defined in the this groups.yml file.

groups:
  Default:←預設等級
    default: true
    permissions:←權限
    - -bukkit.command.kill
    inheritance:繼承自什麼等級
    - g:essentials_default
    - g:bukkit_default
    info:
      prefix: '&e'前綴
      build: true ←是否允許建造 (true=是;false=否 )
      suffix: ''後綴
  Builder:←建築師
    default: false
    permissions: []
    inheritance:
    - default
    - g:essentials_builder
    - g:towny_builder
    info:
      prefix: '&2'
      build: true
      suffix: ''
  Moderator:←協管者
    default: false
    permissions: []
    inheritance:
    - builder
    - g:essentials_moderator
    - g:bukkit_moderator
    - g:towny_moderator
    info:
      prefix: '&5'
      build: true
      suffix: ''
  Admin:←管理員
    default: false
    permissions: []
    inheritance:
    - moderator
    - g:essentials_admin
    - g:bukkit_admin
    - g:towny_admin
    info:
      prefix: '&c'
      build: true
      suffix: ''
  Owner:←伺服擁有者
    default: false
    permissions:
    - '*'
    inheritance:
    - admin
    info:
      prefix: '&4'
      build: true
      suffix: ''



在 "users.yml" 中:

# "For a more advanced configuration example utilizing the advanced features of GroupManager, see http://pastebin.com/a8ZA0j5G"
users:
  aPlayer:玩家名字
    subgroups: []
    permissions: []←個人權限
    group: Default←所屬群組
    info:
      prefix: '&d'←前
      suffix: Miner後綴
  Notch:
    subgroups: []
    permissions: []
    group: Admin

設定玩家至群組之指令:
 /manuadd <玩家> <群組>

本文參考了以下資料

沒有留言:

張貼留言