Essentials - 設定篇[每個伺服器都不能少的插件]

Home Home
引用 | 編輯 mychat09087
2012-09-14 19:56
樓主
推文 x0
───── 插件圖示─────
Essentials

─────最新版本下載─────
1. Download Essentials Core (必裝備)
2. Download Essentials Extras (可選用)
3. Download Group Manager 
(必裝備) 
─────Essentials運作原理─────

1. Essentials核心插件 會設置新玩家的重生點、家居設置點、入伺服器的物品(所謂新手包)、玩家的權限(能否使用特定指令),等等。
2. 接著,Group Manager 會被運行,這插件來控制玩家的權限、玩家名字顏色能否建築,等等。
─────Essentials核心插件的主要設定─────
CraftBukkit\plugins\Essentials\config.yml設定:
1. 管理員名字顏色(顏色碼能在本文附件中):
複製程式
# A color code between 0-9 or a-f. Set to 'none' to disable.
ops-name-color: 'c'
2. 伺服器內的暱名前的字符:
複製程式
# The character(s) to prefix all nicknames, so that you know they are not true usernames.
nickname-prefix: '~'
3. 新手包:
複製程式
# Note: All items MUST be followed by a quantity!
# All kit names should be lower case, and will be treated as lower in permissions/costs.
# Syntax: - itemID[:DataValue] Amount [Enchantment:Level]..
# 'delay' refers to the cooldown between how often you can use each kit, measured in seconds.
kits:
  dtools:
    delay: 10
    items:
      - 277 1 efficiency:1
      - 278 1
      - 279:780 1
  tools:
    delay: 10
    items:
      - 272 1
      - 273 1 
      - 274 1
      - 275 1
  示範:
複製程式
# Note: All items MUST be followed by a quantity!
# All kit names should be lower case, and will be treated as lower in permissions/costs.
# Syntax: - itemID[:DataValue] Amount [Enchantment:Level]..
# 'delay' refers to the cooldown between how often you can use each kit, measured in seconds.
kits:
  dtools:
    delay: 10
    items:
      - 277 1 efficiency:1
      - 278 1
      - 279:780 1
  tools:
    delay: 10
    items:
      - 272 1
      - 274 1
      - 273 1
      - 258 1
      - 260 128
      - 295 10
      - 263 10
4. 玩家離線設定(多少秒才視為離線):
複製程式
# Auto-AFK
# After this timeout in seconds, the user will be set as afk.
# Set to -1 for no timeout.
auto-afk: 300
5. 玩家能否放置、使用物品的設定:
複製程式
  # For which block types would you like to be alerted?
  # You can find a list of IDs in plugins/Essentials/items.csv after loading Essentials for the first time.
  # 10 = lava :: 11 = still lava :: 46 = TNT :: 327 = lava bucket
  alert:
    on-placement: 10,11,46,327  \\玩家不能放置的物品
    on-use: 327  \\玩家不能使用的物品
    on-break:   \\玩家不能破壞的物品

  blacklist:

    # Which blocks should people be prevented from placing
    placement: 10,11,46,327  \\玩家不能放置的物品

    # Which items should people be prevented from using
    usage: 327  \\玩家不能使用的物品

    # Which blocks should people be prevented from breaking
    break:  \\玩家不能破壞的物品

    # Which blocks should not be pushed by pistons
    piston:
6. 防止某物品、生物的爆炸以及是否防止生出某怪物(將該項的設定轉為true或false):
複製程式
prevent:
    lava-flow: false
    water-flow: false
    water-bucket-flow: false
    fire-spread: true
    lava-fire-spread: true
    flint-fire: false
    lightning-fire-spread: true
    portal-creation: false  \\能否創造地獄傳送門
    tnt-explosion: false  \\是否防止TNT爆炸
    tnt-playerdamage: false  \\是否防止TNT爆炸的威力
    fireball-explosion: false
    fireball-fire: false
    fireball-playerdamage: false
    creeper-explosion: false  \\是否防止Creeper爆炸
    creeper-playerdamage: false  \\是否防止Creeper爆炸的威力
    creeper-blockdamage: false
    enderdragon-blockdamage: true
    enderman-pickup: false
    villager-death: false
    # Monsters won't follow players
    # permission essentials.protect.entitytarget.bypass disables this
    entitytarget: false
    # Prevent the spawning of creatures  \\是否防止生出某怪物(true為防止、false為不防止)
    spawn:
      creeper: false
      skeleton: false
      spider: false
      giant: false
      zombie: false
      slime: false
      ghast: false
      pig_zombie: false
      enderman: false
      cave_spider: false
      silverfish: false
      blaze: false
      magma_cube: false
      ender_dragon: false
      pig: false
      sheep: false
      cow: false      
      chicken: false
      squid: false
      wolf: false
      mushroom_cow: false
      snowman: false
      ocelot: false
      iron_golem: false
      villager: false
CraftBukkit\plugins\Essentials\rules.txt設定:
一行一句守規複製程式
[1] Be respectful  
[2] Be ethical
[3] Use common sense
─────Group Manager權限主要設定─────
Group Manager權限+指令大全:http://wiki.ess3.net/wiki/Command_Reference/Perm
首先,請打開CraftBukkit\plugins\GroupManager\worlds\<你將要更改的地圖名>\groups.yml,以下是預設的設定。
複製程式
# Group inheritance
#
# Any inherited groups prefixed with a g: are global groups
# and are inherited from the GlobalGroups.yml.
#
# Groups without the g: prefix are groups local to this world
# and are defined in the this groups.yml file.
#
# Local group inheritances define your promotion tree when using 'manpromote/mandemote'

groups:
  Default:
    default: true
    permissions:
    - -bukkit.command.kill
    inheritance:
    - g:groupmanager_default
    - g:bukkit_default
    - g:essentials_default
    - g:towny_default
    info:
      prefix: '&e'
      build: 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:groupmanager_moderator
    - g:bukkit_moderator
    - g:essentials_moderator
    - g:towny_moderator
    - g:vanish_moderator
    info:
      prefix: '&5'
      build: true
      suffix: ''
  Admin:
    default: false
    permissions: []
    inheritance:
    - moderator
    - g:groupmanager_admin
    - g:bukkit_admin
    - g:essentials_admin
    - g:towny_admin
    - g:vanish_admin
    info:
      prefix: '&c'
      build: true
      suffix: ''
  Owner:
    default: false
    permissions:
    - '*'
    - -vanish.*
    inheritance:
    - admin
    info:
      prefix: '&4'
      build: true
      suffix: ''
找到了你想給玩家能用的指令後,就複制"essentials.<permissions>",<permissions>為自選項目。
複製程式
# Group inheritance
#
# Any inherited groups prefixed with a g: are global groups
# and are inherited from the GlobalGroups.yml.
#
# Groups without the g: prefix are groups local to this world
# and are defined in the this groups.yml file.
#
# Local group inheritances define your promotion tree when using 'manpromote/mandemote'

groups:
  Default:
    default: true
    permissions:           \\複制後,在這行開新一開,之後貼上該文字(註:若該行的文字為紅色時,請確認該文字前有4個space)。
    - essentials.fly  \\例如我想給玩家打上/fly就能飛,我就要打上"    - essentials.fly",其他也是這樣加上。
    - -bukkit.command.kill
    inheritance:
    - g:groupmanager_default
    - g:bukkit_default
    - g:essentials_default
    - g:towny_default
    info:
      prefix: '&e'
      build: 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:groupmanager_moderator
    - g:bukkit_moderator
    - g:essentials_moderator
    - g:towny_moderator
    - g:vanish_moderator
    info:
      prefix: '&5'
      build: true
      suffix: ''
  Admin:
    default: false
    permissions: []
    inheritance:
    - moderator
    - g:groupmanager_admin
    - g:bukkit_admin
    - g:essentials_admin
    - g:towny_admin
    - g:vanish_admin
    info:
      prefix: '&c'
      build: true
      suffix: ''
  Owner:
    default: false
    permissions:
    - '*'
    - -vanish.*
    inheritance:
    - admin
    info:
      prefix: '&4'
      build: true
      suffix: ''
─────總結─────
本人用過了這麼的插件,這可是最強的。為何我這樣說?

這能代替Anti-Creeper插件(防Creeper爆炸),代替了SafeExplosion插件(防TNT爆炸),代替了ItemManager插件(控制玩家能否使用該物品),等等。

另外,指令也比原本的簡易更多,如:/time day、/weather sun,等等。
─────後記─────
這次可編得很久呢……辛苦了幾小時,能讓大家看清Essentials的設定,再花得多時間也值得的……表情
──────────

[此文章售價 0 雅幣已有 100 人購買]
若發現會員採用欺騙的方法獲取財富,請立刻舉報,我們會對會員處以2-N倍的罰金,嚴重者封掉ID!



獻花 x1
引用 | 編輯 rainbow98725
2013-01-22 07:27
1樓
  
阿請問改顏色怎改 看不懂@@"

獻花 x0
引用 | 編輯 0989207216
2013-07-22 21:37
2樓
  
好複雜呀大大 表情

獻花 x0
引用 | 編輯 l73102700
2013-12-23 19:53
3樓
  
谢谢大大,有了这个我终于知道怎么设置我的服务器了A_A

獻花 x0
引用 | 編輯 willy83485
2014-01-23 15:01
4樓
  
這個很好用嗎
看起來很複雜
不過大型伺服器不能缺少這個

獻花 x0
引用 | 編輯 a67789
2015-05-18 18:51
5樓
  
表情 好棒,谢谢分享

獻花 x0
引用 | 編輯 chunchun007
2016-04-17 11:56
6樓
  
感謝大大美好的分享表情 表情

獻花 x0
引用 | 編輯 饅頭是我
2018-03-22 19:17
7樓
  
實用的教學

獻花 x0