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

“SunLight-Core”的版本间的差异

来自Minecraft插件百科
跳转至: 导航搜索
全局
 
(未显示2个用户的11个中间版本)
第4行: 第4行:
 
<!--标题-->
 
<!--标题-->
 
         <p style="color:#ffffff;font-size: 26px;text-align: center;margin:0; padding:14px;background-color: #3385ff;">
 
         <p style="color:#ffffff;font-size: 26px;text-align: center;margin:0; padding:14px;background-color: #3385ff;">
             欢迎来到SunLight-Core插件百科
+
             SunLight
 
         </p>
 
         </p>
 
         <div style="float:none;-webkit-border-image: none;height: auto;line-height: 20px;background-color:#74c0ff;display:table;width:100%;color:#ffffff;">
 
         <div style="float:none;-webkit-border-image: none;height: auto;line-height: 20px;background-color:#74c0ff;display:table;width:100%;color:#ffffff;">
 
  <!--内容-->
 
  <!--内容-->
 
             <p style="float:none;font-size: 16px;text-align: center;padding:10px 0;display:table-cell;border-right:1px solid white;">
 
             <p style="float:none;font-size: 16px;text-align: center;padding:10px 0;display:table-cell;border-right:1px solid white;">
                 <big>插件名<br>'''SunLight-Core</big>'''
+
                 <big>插件名<br>'''SunLight-Core|SunLight</big>'''
 
             </p>
 
             </p>
 
             <p style="float:none;font-size: 16px;text-align: center;padding:10px 0;display:table-cell;border-right:1px solid white;">
 
             <p style="float:none;font-size: 16px;text-align: center;padding:10px 0;display:table-cell;border-right:1px solid white;">
第16行: 第16行:
 
             </p>
 
             </p>
 
             <p style="float:none;font-size: 16px;text-align: center;padding:10px 0;display:table-cell;border-right:1px solid white;">
 
             <p style="float:none;font-size: 16px;text-align: center;padding:10px 0;display:table-cell;border-right:1px solid white;">
                 <big>兼容版本<br>'''1.13-1.14</big>'''
+
                 <big>兼容版本<br>'''1.14-1.15</big>'''
 
             </p>
 
             </p>
 
             <p style="float:none;font-size: 16px;text-align: center;padding:10px 0;display:table-cell;border-right:1px solid white;">
 
             <p style="float:none;font-size: 16px;text-align: center;padding:10px 0;display:table-cell;border-right:1px solid white;">
                 <big>原文<br>'''[http://nexwiki.info/suncore/index.php nexwiki]</big>'''
+
                 <big>原文<br>'''[http://nexwiki.info/]</big>'''
 
             </p>
 
             </p>
 
         </div>
 
         </div>
 
     </div>
 
     </div>
 +
本页面基于早期版本进行翻译,部分内容已过期,最新版的汉化配置请查看MCBBS搬运帖,以下的权限节点除增强模块外都为旧版<br>
 +
'''core.'''开头的为旧版权限节点
 
<div style="float:none;-webkit-border-image: none;color: #333;height: auto;line-height: 20px;margin: 35px 0 0 0;min-height: 20px;background-color: #f8f8f8;box-shadow:0 0 10px rgba(193, 193, 193, 0.5);-webkit-box-shadow:0 0 10px rgba(193, 193, 193, 0.5);-moz-box-shadow:0 0 10px rgba(193, 193, 193, 0.5);width:100%;">
 
<div style="float:none;-webkit-border-image: none;color: #333;height: auto;line-height: 20px;margin: 35px 0 0 0;min-height: 20px;background-color: #f8f8f8;box-shadow:0 0 10px rgba(193, 193, 193, 0.5);-webkit-box-shadow:0 0 10px rgba(193, 193, 193, 0.5);-moz-box-shadow:0 0 10px rgba(193, 193, 193, 0.5);width:100%;">
 
         <!--标题-->
 
         <!--标题-->
第32行: 第34行:
 
         <div style="padding:10px 20px;">
 
         <div style="padding:10px 20px;">
 
=模块=
 
=模块=
==AFK==
+
==增强==
===settings.yml===
+
在3.0版本后一些模块归入了增强模块内。
 +
===设置===
 +
==== 权限 ====
 +
{| class="wikitable"
 +
|-
 +
! 权限 !! 描述
 +
|-
 +
| sunlight.enhancements.signs.color || 允许用户在告示牌内使用彩色文字
 +
|}
 +
====配置====
 +
<spoiler>
 +
#AFK模块
 +
afk:
 +
  enabled: true
 +
#椅子整理模块
 +
chairs:
 +
  enabled: true
 +
#箱子整理模块
 +
chest-sort:
 +
  enabled: true
 +
#物理效果
 +
physics:
 +
  explosions:
 +
    # 开关爆炸的物理效果
 +
    enabled: false
 +
#Tab模块
 +
tab:
 +
  enabled: true
 +
#告示牌
 +
signs:
 +
  colors:
 +
    #开关告示牌的彩色文字
 +
    enabled: true
 +
#计分板模块
 +
scoreboard:
 +
  enabled: true
 +
</spoiler>
 +
===AFK===
 +
====settings.yml====
 
  general:
 
  general:
 
   # 多久后玩家进入离开游戏状态
 
   # 多久后玩家进入离开游戏状态
第47行: 第87行:
 
   enter-afk-actions: []
 
   enter-afk-actions: []
 
   exit-afk-actions: []
 
   exit-afk-actions: []
==优化==
 
这个模块添加了简单的优化系统来优化你的服务器性能和提升TPS.
 
 
当前特性:
 
'''实体限制''' - 限制每个区块的实体数.
 
===Settings.yml===
 
entity-chink-limit:
 
  # 是否启用区域限制.
 
  enabled: true
 
  # 是否自动检测区块
 
  inspection-enabled: true
 
  # 检测间隔.
 
  inspection-frequency: 300
 
  # 每个区块的实体限制.
 
  limits:
 
    ANIMAL: 50
 
    MONSTER: 50
 
    NPC: 20
 
    AMBIENT: 10
 
    WATER: 20
 
    OTHER: 50
 
  
==椅子==
+
===椅子===
 
这个模块可以让玩家坐在半砖、台阶和地毯上.
 
这个模块可以让玩家坐在半砖、台阶和地毯上.
 
<br />
 
<br />
  
=== '''指令和权限''' ===
+
<br />
 +
注:2.3版本之后chair模块转移到了module/enhancements文件夹中的模块
 +
    2.3版本之后新增chairs.yml 你可以配置什么方块能坐 什么不能坐
 +
==== '''指令和权限''' ====
 
{| class="wikitable"
 
{| class="wikitable"
 
!指令
 
!指令
第88行: 第110行:
 
|}
 
|}
  
==聊天==
+
===随机传送===
 +
这个模块可以让玩家使用随机传送
  
 +
'''特点:'''
  
这个模块可以让你管理聊天消息.
+
* '''多世界''' - 可在不同世界启用或关闭随机传送.
 +
* '''方块黑名单''' - 玩家不会传送到这些方块上.
 +
* '''传送动画''' - 地点搜索进度动画.
  
'''玩家聊天消息不支持JSON!'''
+
==== '''Settings.yml''' ====
 +
 +
<code># 设置默认世界.
 +
# 玩家可在这个世界内使用随机传送
 +
# 默认输入/rtp在此世界随机传送.
 +
'''default-world:''' '''world'''
 +
# 强制传送玩家到默认世界.
 +
# 设置为 '''false'''时在其他世界使用/rtp 会被取消传送.
 +
'''force-to-default:''' '''false'''
 +
# 最大搜索尝试次数.
 +
'''max-attempts:''' '''5'''
 +
# 玩家不会传送到的方块上.
 +
'''block-blacklist:'''
 +
'''-''' '''LAVA'''
 +
'''-''' '''WATER'''
 +
# 随机传送范围.
 +
'''worlds:'''
 +
  '''world:'''
 +
    '''x1:''' '''-5000'''
 +
    '''x2:''' '''5000'''
 +
    '''z1:''' '''-5000'''
 +
    '''z2:''' '''5000'''</code>
 +
  
'''特性:'''
+
==== '''指令和权限''' ====
 +
{| class="wikitable"
 +
!指令
 +
!缩写
 +
!描述
 +
!是否只能由玩家使用
 +
!权限
 +
|-
 +
|'''/rtp'''
 +
| -
 +
|随机传送.
 +
|是
 +
|core.cmd.rtp
 +
|}
 +
 
 +
===计分板===
 +
这个模块提供了简易的计分板功能.
 +
 
 +
'''需要安装ProtocolLib和PlaceholderAPI!'''
 +
 
 +
'''特点:'''
  
* '''防大写''' - 防止全大写英文消息.
+
* '''动态显示''' - 在计分板显示动态文本.
* '''防刷屏''' - 防止消息和指令刷屏.
+
* '''轻量''' - 占用很少服务器资源.
* '''加入和退出服务器的消息''' - 根据分组显示不同的加入和退出服务器的消息.
 
* '''死亡消息''' - 更改玩家死亡消息.
 
* '''物品展示''' - 在聊天框内展示你的物品.
 
* '''全服和本地聊天''' - 可配置聊天范围.
 
* '''管理员聊天''' - 管理员聊天频道.
 
* '''支持PlaceholderAPI.'''
 
* '''聊天规则和惩罚''' - 使用正则表达式检测聊天内容并进行惩罚!
 
* '''自动公告''' - 每隔一段时间发送公告. 支持 JSON.
 
  
=== '''Settings.yml''' ===
+
==== '''Settings.yml''' ====
  anti-caps:
+
  <code>'''board:'''
   # 是否启用防大写功能(对中文无效,译者已关闭该功能)
+
   # 更新间隔.
  enabled: false
+
   # 20刻 = 1 秒
  # 启用该功能的指令.
+
   '''update-interval:''' '''20'''
  in-commands:
+
   # 计分板标题
  - me
+
   '''title:''' '''<nowiki/>'&e&l服务器名''''
  - broadcast
+
   # 计分板内容
  - tell
+
   '''lines:'''
   # 检测的最短消息长度
+
   '''-''' '''<nowiki/>'&c┃┃ &f内存: &c%server_ram_max% MB''''
   min-length: 3
+
   '''-''' '''<nowiki/>'&c┃┃ &f在线玩家: &c%server_online%''''
   # 多少百分比的大小字母会被改成小写.
+
   '''-''' '''<nowiki/>'&c┃┃ &f时间: &c%server_time_kk:mm:ss%''''
   percentage: 70
+
   '''-''' '''<nowiki>''</nowiki>'''
   # 单词白名单
+
   '''-''' '''<nowiki/>'&e┃┃ &f称号: &e%vault_prefix%''''
   whitelist:
+
   '''-''' '''<nowiki/>'&e┃┃ &f金钱: &e%vault_eco_balance_formatted%''''
   - OMG
+
   '''-''' '''<nowiki/>'&e┃┃ &f位置: &e%player_x%&7, &e%player_y%&7, &e%player_z%''''
   - LOL
+
   '''-''' '''<nowiki>''</nowiki>'''
   - WTF
+
   '''-''' '''<nowiki/>'&a┃┃ &f击杀: &a%statistic_player_kills%''''
   - WOW
+
   '''-''' '''<nowiki/>'&a┃┃ &f死亡: &a%statistic_deaths%''''
   - ROFL
+
   '''-''' '''<nowiki/>'&a┃┃ &f在线时间: &a%statistic_days_played%''''
+
   '''-''' '''<nowiki>''</nowiki>'''
anti-spam:
+
   '''-''' '''<nowiki/>'&bplay.servermc.com'<nowiki/>'''</code>
   # 聊天冷却.
+
 
  chat-delay: 3
+
==== '''指令和权限''' ====
   # 指令冷却.
+
{| class="wikitable"
  cmd-delay: 3
+
!指令
   # 检测的消息/指令相似度.
+
!缩写
   percentage: 90
+
!描述
   # 指令白名单.
+
!是否只能由玩家使用
  whitelist:
+
!权限
   - 'tell'
+
|-
   - 'spawn'
+
|'''/board'''
   - 'home'
+
|/scoreboard
  - 'sethome'
+
|开关计分板显示
  - 'reply'
+
|是
  - 'stats'
+
|core.cmd.scoreboard
  - 'kit'
+
|}
  - 'warp'
+
===箱子整理===
 
+
==== 指令和权限 ====
join-and-quit:
+
{| class="wikitable"
  # 是否启用自定义进出游戏消息.
+
!指令
  enabled: true
+
!缩写
  # 特定权限组的进出游戏消息.
+
!描述
  # 插件会自动检测权限组插件的分组.
+
!是否只能由玩家使用
  join-groups:
+
!权限
    Admins: '&7[&2+&7] &7管理员 &2%player% &7加入了游戏.'
+
|-
  quit-groups:
+
|'''/chestsort'''
    Admins: '&7[&4-&7] &7管理员 &4%player% &7离开了游戏.'
+
|/sort
+
|开关箱子整理
item-link:
+
|是
  # 是否启用在聊天内展示物品.
+
|sunlight.enhancements.chestsort.cmd.chestsort
  enabled: true
+
|}
  # 替换物品的变量.
+
===TAB===
  keyword: '@hand'
+
这个模块可以让你自定义TAB内容.
  # 物品名格式.
+
 
  format: '&7<&f%item%&7>&f'
+
'''特点:'''
+
 
  death-messages:
+
* '''动态显示''' - 创建并使用自定义动态效果.
   # 是否启用自定义死亡信息.
+
* '''页眉和页脚''' - 更改TAB的页眉和页脚.
   enabled: true
+
* '''玩家名''' - 更改玩家名格式.
   # 指定死因的死亡消息列表.
+
* '''玩家名标签''' - 更改玩家名称号及格式.
   # 同一死因可添加多条消息.
+
* '''PlaceholderAPI''' - 支持 PlaceholderAPI (仅限TAB).
   # 如果玩家死因不在列表内,则不会显示死亡信息.
+
 
   by-cause:
+
==== Settings.yml ====
    LAVA:
+
  format:
    - '&7(&c☠&7) &c%player% &7尝试在岩浆里游泳.'
+
   # 更新间隔.
    BLOCK_EXPLOSION:
+
   # 20 刻 = 1 秒, 1 刻 = 50 毫秒
    - '&7(&c☠&7) &c%player% &7炸了!'
+
  update-interval: 1
   # 同上,由实体造成的死亡.
+
   # 页眉和页脚.
   by-entity:
+
   # 请使用这个格式来显示动态效果: %animation:[id]%,[id] 为配置内的动画名.
    PLAYER:
+
   header:
    - '&7(&c⚔&7) &c%damager% &7杀死了 &c%player%'
+
   - '%animation:servername%'
    ZOMBIE:
+
  - ''
    - '&7(&c☠&7) &c%player%&7的脑子被僵尸吃了.'
+
  - '&7在线人数:%animation:online% %server_online%'
+
  - ''
chat:
+
  - '&2››› &7时间: &a[%server_time_HH:mm:ss%] &7| &7日期: &a[%server_time_dd.MM.yyyy%] &2‹‹‹'
   format:
+
   - ''
    # 占位符:
+
   footer:
    # {player_prefix} - 玩家组前缀.
+
  - '&7'
    # {player_suffix} - 玩家组后缀.
+
  - '&7商店:'
    # {name} - 玩家名.
+
  - '%animation:web%'
    # {display_name} - 自定义玩家名 (来自 /nick 的昵称等).
+
  - ''
    # {message} - 玩家消息.
+
  - '&e玩的愉快! :)'
    # 可以在这使用PlaceholderAPI! 请使用 {} 而不是 %.
+
   - '&6ᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐ'
    local: '&3[本地] &7{player_prefix}{display_name}{player_suffix}&f: {message}'
+
# 玩家名称和标签格式.
    global: '&6[全服] &7{player_prefix}{display_name}{player_suffix}&f: {message}'
+
# 玩家权限组由插件自动检测.
     spy: '&c侦查&7 | {world} {name}&7: {message}'
+
# 权限越高的玩家在TAB的位置也越高.
     admin: '&7[&b管理员聊天&7] &7{player_prefix}{display_name}{player_suffix}&f: {message}'
+
group-format:
     # 聊天范围,设置为0.0关闭
+
  Admins: '&7[&4管理员&7] &4%player%'
    range: 100.0
+
  default: '&7[&8玩家&7] &7%player%'
+
tag-group-format:
# 聊天规则部分.
+
  Admins:
rules:
+
     prefix: '&4管理员 &f'
  # 规则名
+
    suffix: ''
  swear:
+
  default:
    dick:
+
     prefix: '&7玩家 &f'
      # 正则表达式.
+
     suffix: ''
      # 可使用这个网站测试正则表达式: http://myregexp.com/
+
 
      match: '((D|d)+([^a-zA-ZА-Яа-я]|\s)*(i|I|1|!)+([^a-zA-ZА-Яа-я]|\s)*(c|C)+([^a-zA-ZА-Яа-я]|\s)*(k|K)+([^a-zA-ZА-Яа-я]|\s)*)'
+
 
      # 检测行为.
+
==优化==
      # 可用:
+
这个模块添加了简单的优化系统来优化你的服务器性能和提升TPS.
      # REPLACE - 替换脏话.
+
 
      # REPLACE_FULL - 替换整条消息/指令.
+
当前特性:
      # DENY - 取消消息/指令.
+
'''实体限制''' - 限制每个区块的实体数.
      action: REPLACE
+
===Settings.yml===
      # 替换后的消息.
+
entity-chink-limit:
      replace-with: '***'
+
  # 是否启用区域限制.
      # 无视规则的单词.
+
  enabled: true
      # 可用于好话里的脏话.
+
  # 是否自动检测区块
      ignore-strings:
+
  inspection-enabled: true
      - 'dickon'
+
  # 检测间隔.
     shit:
+
  inspection-frequency: 300
      match: '((s|S|$)+([^a-zA-ZА-Яа-я]|\s)*(h|H)+([^a-zA-ZА-Яа-я]|\s)*(i|I|1|!)+([^a-zA-ZА-Яа-я]|\s)*(T|t|7)+([^a-zA-ZА-Яа-я]|\s)*)'
+
  # 每个区块的实体限制.
      action: REPLACE_FULL
+
  limits:
      replace-with: '这服真好玩!'
+
    ANIMAL: 50
      ignore-strings: []
+
    MONSTER: 50
  adv:
+
     NPC: 20
    ips:
+
    AMBIENT: 10
      match: '\b[0-9]{1,3}(\.|dot|\(dot\)|-|;|:|,|(\W|\d|_)*\s)+[0-9]{1,3}(\.|dot|\(dot\)|-|;|:|,|(\W|\d|_)*\s)+[0-9]{1,3}(\.|dot|\(dot\)|-|;|:|,|(\W|\d|_)*\s)+[0-9]{1,3}\b'
+
    WATER: 20
      action: DENY
+
    OTHER: 50
      replace-with: '***'
+
 
      ignore-strings:
+
==聊天==
      - '127.0.0.1'
+
 
    domain:
+
这个模块可以让你管理聊天消息.
      match: '[a-zA-Z0-9\-\.]+\s?(\.|dot|\(dot\)|-|;|:|,)\s?(com|org|net|cz|co|uk|sk|biz|mobi|xxx|eu|me|io|ru|su|tk|ua)\b'
+
 
      action: DENY
+
'''玩家聊天消息不支持JSON!'''
      replace-with: '***'
+
 
      ignore-strings:
+
'''特性:'''
      - 'yandex.ru'
+
 
      - 'google.com'
+
* '''防大写''' - 防止全大写英文消息.
      - 'spigotmc.org'
+
* '''防刷屏''' - 防止消息和指令刷屏.
 +
* '''加入和退出服务器的消息''' - 根据分组显示不同的加入和退出服务器的消息.
 +
* '''死亡消息''' - 更改玩家死亡消息.
 +
* '''物品展示''' - 在聊天框内展示你的物品.
 +
* '''全服和本地聊天''' - 可配置聊天范围.
 +
* '''管理员聊天''' - 管理员聊天频道.
 +
* '''支持PlaceholderAPI.'''
 +
* '''聊天规则和惩罚''' - 使用正则表达式检测聊天内容并进行惩罚!
 +
* '''自动公告''' - 每隔一段时间发送公告. 支持 JSON.
 +
 
 +
=== '''Settings.yml''' ===
 +
anti-caps:
 +
  # 是否启用防大写功能(对中文无效,译者已关闭该功能)
 +
  enabled: false
 +
  # 启用该功能的指令.
 +
  in-commands:
 +
  - me
 +
  - broadcast
 +
  - tell
 +
  # 检测的最短消息长度
 +
  min-length: 3
 +
  # 多少百分比的大小字母会被改成小写.
 +
  percentage: 70
 +
  # 单词白名单
 +
  whitelist:
 +
  - OMG
 +
  - LOL
 +
  - WTF
 +
  - WOW
 +
  - ROFL
 
   
 
   
  # 惩罚措施
+
  anti-spam:
rules-punish:
+
  # 聊天冷却.
   # 上面的规则名.
+
  chat-delay: 3
   swear:
+
  # 指令冷却.
    # 发送消息
+
  cmd-delay: 3
    message: '&c聊天 &4║ &f你的消息被更改了,原因: &c粗鄙之语&f.'
+
   # 检测的消息/指令相似度.
    # 执行指令. 留空关闭.
+
   percentage: 90
     command: 'warn %player% 禁止粗鄙之语'
+
  # 指令白名单.
   adv:
+
  whitelist:
     message: '&c聊天 &4║ &f你的消息被取消发送了,原因: &c打广告&f.'
+
  - 'tell'
    command: ''
+
  - 'spawn'
+
  - 'home'
  # 自动公告
+
  - 'sethome'
  announcer:
+
  - 'reply'
   # 间隔
+
  - 'stats'
   time: 180
+
  - 'kit'
   # 消息列表. 使用 /n 来换行.
+
  - 'warp'
   list:
+
 
  - '/n &&e查看插件百科:&6 {json: hint=&b点击前往!; url=http://mineplugin.org/SunLight-Core}[戳我]{end-json} /n '
+
join-and-quit:
  - '/n &&e支持 JSON 消息:&a {json: hint=&b你好, %player%!}[这是个按钮]{end-json} /n '
+
  # 是否启用自定义进出游戏消息.
 
+
  enabled: true
=== '''指令和权限''' ===
+
  # 特定权限组的进出游戏消息.
'''权限列表:'''
+
  # 插件会自动检测权限组插件的分组.
 
+
  join-groups:
* '''core.chat.color''' - 允许在聊天消息内使用颜色代码.
+
     Admins: '&7[&2+&7] &7管理员 &2%player% &7加入了游戏.'
* '''core.chat.spy''' - 允许查看本地聊天.
+
   quit-groups:
* '''core.chat.admin''' - 允许查看和使用管理员聊天.
+
     Admins: '&7[&4-&7] &7管理员 &4%player% &7离开了游戏.'
* '''core.bypass.chat.delay.msg''' - 忽略聊天冷却.
+
* '''core.bypass.chat.delay.cmd''' - 忽略指令冷却.
+
item-link:
* '''core.bypass.chat.caps''' - 忽略防大写检测.
+
  # 是否启用在聊天内展示物品.
* '''core.bypass.chat.spam''' - 忽略复读检测.
+
  enabled: true
* '''core.bypass.chat.rules''' - 忽略聊天规则检测.
+
  # 替换物品的变量.
 
+
  keyword: '@hand'
{| class="wikitable"
+
  # 物品名格式.
!指令
+
  format: '&7<&f%item%&7>&f'
!缩写
+
   
!描述
+
  death-messages:
!是否只能由玩家使用
+
   # 是否启用自定义死亡信息.
!权限
+
   enabled: true
|-
+
  # 指定死因的死亡消息列表.
|'''/adminchat'''
+
   # 同一死因可添加多条消息.
| -
+
  # 如果玩家死因不在列表内,则不会显示死亡信息.
|切换管理员聊天模式
+
   by-cause:
|
+
    LAVA:
|core.chat.admin
+
    - '&7(&c☠&7) &c%player% &7尝试在岩浆里游泳.'
|}
+
    BLOCK_EXPLOSION:
 
+
    - '&7(&c☠&7) &c%player% &7炸了!'
==经济==
+
  # 同上,由实体造成的死亡.
'''这一模块需要安装Vault!'''
+
  by-entity:
 
+
    PLAYER:
'''特点:'''
+
    - '&7(&c⚔&7) &c%damager% &7杀死了 &c%player%'
 
+
    ZOMBIE:
* '''支持离线玩家''' - 设置/给予/拿走 离线玩家的金钱.
+
    - '&7(&c☠&7) &c%player%&7的脑子被僵尸吃了.'
 
+
=== Settings.yml ===
+
chat:
# /baltop更新间隔
+
  format:
baltop-update: 15
+
    # 占位符:
currency:
+
    # {player_prefix} - 玩家组前缀.
  # 货币符号
+
    # {player_suffix} - 玩家组后缀.
  symbol: '$'
+
    # {name} - 玩家名.
  # 新玩家拥有的钱
+
    # {display_name} - 自定义玩家名 (来自 /nick 的昵称等).
  start-balance: 100.0
+
    # {message} - 玩家消息.
 
+
    # 可以在这使用PlaceholderAPI! 请使用 {} 而不是 %.
=== 指令和权限 ===
+
    local: '&3[本地] &7{player_prefix}{display_name}{player_suffix}&f: {message}'
{| class="wikitable"
+
    global: '&6[全服] &7{player_prefix}{display_name}{player_suffix}&f: {message}'
!指令
+
    spy: '&c侦查&7 | {world} {name}&7: {message}'
!缩写
+
    admin: '&7[&b管理员聊天&7] &7{player_prefix}{display_name}{player_suffix}&f: {message}'
!描述
+
    # 聊天范围,设置为0.0关闭
!是否只能由玩家使用
+
    range: 100.0
!权限
+
|-
+
# 聊天规则部分.
|'''/balance (player)'''
+
rules:
|/bal, /money, /cash
+
  # 规则名
|查看玩家有多少钱
+
  swear:
|
+
    dick:
|core.eco.balance
+
      # 正则表达式.
|-
+
      # 可使用这个网站测试正则表达式: http://myregexp.com/
|'''/balancetop (page)'''
+
      match: '((D|d)+([^a-zA-ZА-Яа-я]|\s)*(i|I|1|!)+([^a-zA-ZА-Яа-я]|\s)*(c|C)+([^a-zA-ZА-Яа-я]|\s)*(k|K)+([^a-zA-ZА-Яа-я]|\s)*)'
|/baltop, /moneytop
+
      # 检测行为.
|金钱排行榜
+
      # 可用:
|
+
      # REPLACE - 替换脏话.
|core.eco.balancetop
+
      # REPLACE_FULL - 替换整条消息/指令.
|-
+
      # DENY - 取消消息/指令.
|'''/pay [player] [amount]'''
+
      action: REPLACE
| -
+
      # 替换后的消息.
|支付给玩家金钱
+
      replace-with: '***'
|是
+
      # 无视规则的单词.
|core.eco.pay
+
      # 可用于好话里的脏话.
|-
+
      ignore-strings:
|'''/eco give [player] [amount]'''
+
      - 'dickon'
|/economy give
+
    shit:
|给予玩家金钱
+
      match: '((s|S|$)+([^a-zA-ZА-Яа-я]|\s)*(h|H)+([^a-zA-ZА-Яа-я]|\s)*(i|I|1|!)+([^a-zA-ZА-Яа-я]|\s)*(T|t|7)+([^a-zA-ZА-Яа-я]|\s)*)'
|否
+
      action: REPLACE_FULL
|core.eco + core.eco.give
+
      replace-with: '这服真好玩!'
|-
+
      ignore-strings: []
|'''/eco take [player] [amount]'''
+
  adv:
|/economy take
+
    ips:
|拿走玩家的钱
+
      match: '\b[0-9]{1,3}(\.|dot|\(dot\)|-|;|:|,|(\W|\d|_)*\s)+[0-9]{1,3}(\.|dot|\(dot\)|-|;|:|,|(\W|\d|_)*\s)+[0-9]{1,3}(\.|dot|\(dot\)|-|;|:|,|(\W|\d|_)*\s)+[0-9]{1,3}\b'
|否
+
      action: DENY
|core.eco + core.eco.take
+
      replace-with: '***'
|-
+
      ignore-strings:
|'''/eco set [player] [amount]'''
+
      - '127.0.0.1'
|/economy give
+
    domain:
|设置玩家的金钱
+
      match: '[a-zA-Z0-9\-\.]+\s?(\.|dot|\(dot\)|-|;|:|,)\s?(com|org|net|cz|co|uk|sk|biz|mobi|xxx|eu|me|io|ru|su|tk|ua)\b'
|否
+
      action: DENY
|core.eco + core.eco.set
+
      replace-with: '***'
|}
+
      ignore-strings:
 +
      - 'yandex.ru'
 +
      - 'google.com'
 +
      - 'spigotmc.org'
 +
 +
# 惩罚措施
 +
rules-punish:
 +
  # 上面的规则名.
 +
  swear:
 +
    # 发送消息
 +
    message: '&c聊天 &4║ &f你的消息被更改了,原因: &c粗鄙之语&f.'
 +
    # 执行指令. 留空关闭.
 +
    command: 'warn %player% 禁止粗鄙之语'
 +
  adv:
 +
    message: '&c聊天 &4║ &f你的消息被取消发送了,原因: &c打广告&f.'
 +
    command: ''
 +
 +
# 自动公告
 +
announcer:
 +
  # 间隔
 +
  time: 180
 +
  # 消息列表. 使用 /n 来换行.
 +
  list:
 +
  - '/n &6» &e查看插件百科:&6 {json: hint=&b点击前往!; url=http://mineplugin.org/SunLight-Core}[戳我]{end-json} /n '
 +
  - '/n &6» &e支持 JSON 消息:&a {json: hint=&b你好, %player%!}[这是个按钮]{end-json} /n '
  
==补丁==
+
=== '''指令和权限''' ===
这个模块修复了一些漏洞.
+
'''权限列表:'''
 +
 
 +
* '''core.chat.color''' - 允许在聊天消息内使用颜色代码.
 +
* '''core.chat.spy''' - 允许查看本地聊天.
 +
* '''core.chat.admin''' - 允许查看和使用管理员聊天.
 +
* '''core.bypass.chat.delay.msg''' - 忽略聊天冷却.
 +
* '''core.bypass.chat.delay.cmd''' - 忽略指令冷却.
 +
* '''core.bypass.chat.caps''' - 忽略防大写检测.
 +
* '''core.bypass.chat.spam''' - 忽略复读检测.
 +
* '''core.bypass.chat.rules''' - 忽略聊天规则检测.
 +
 
 +
{| class="wikitable"
 +
!指令
 +
!缩写
 +
!描述
 +
!是否只能由玩家使用
 +
!权限
 +
|-
 +
|'''/adminchat'''
 +
| -
 +
|切换管理员聊天模式
 +
|是
 +
|core.chat.admin
 +
|}
 +
 
 +
==经济==
 +
'''这一模块需要安装Vault!'''
  
 
'''特点:'''
 
'''特点:'''
  
* '''Fishing Farm''' - 防止挂机钓鱼.
+
* '''支持离线玩家''' - 设置/给予/拿走 离线玩家的金钱.
* '''Bed GUI''' - 防止在床上时打开菜单.
 
* '''Ender Farm''' - 防止使用末影螨建造小黑塔.
 
* '''IP Limit''' - 限制同一IP加入的玩家上限.
 
* '''Creative Limiter''' - 防止玩家从创造模式中拿取物品.
 
  
 
=== Settings.yml ===
 
=== Settings.yml ===
  patcher:
+
  # /baltop更新间隔
   # 防钓鱼农场
+
baltop-update: 15
   fishing: true
+
currency:
   # 防止在床上时打开菜单
+
   # 货币符号
   bed-gui: true
+
   symbol: '$'
  #  防止使用末影螨建造小黑塔
+
   # 新玩家拥有的钱
  ender-farm: true
+
   start-balance: 100.0
  # 限制同一IP加入的玩家上限.
+
 
  limit-ip: true
+
=== 指令和权限 ===
  # 防止玩家从创造模式中拿取物品.
+
{| class="wikitable"
  limit-creative: true
+
!指令
+
!缩写
limit-creative:
+
!描述
  # 创造模式限制的物品.
+
!是否只能由玩家使用
  item-blacklist:
+
!权限
  - SPLASH_POTION
+
|-
  - TNT
+
|'''/balance (player)'''
  - EXPERIENCE_BOTTLE
+
|/bal, /money, /cash
  - TRIDENT
+
|查看玩家有多少钱
  - LINGERING_POTION
+
|否
  - ENDER_EYE
+
|core.eco.balance
  - BEDROCK
+
|-
  - END_PORTAL_FRAME
+
|'''/balancetop (page)'''
  - ITEM_FRAME
+
|/baltop, /moneytop
  - WITHER_SKELETON_SKULL
+
|金钱排行榜
  # 创造模式指令黑名单
+
|否
  cmd-blacklist:
+
|core.eco.balancetop
  - 'auc'
+
|-
  - 'ah'
+
|'''/pay [player] [amount]'''
 
+
| -
=== 权限列表 ===
+
|支付给玩家金钱
 
+
|是
* '''core.bypass.creative''' - 忽略创造限制.
+
|core.eco.pay
 +
|-
 +
|'''/eco give [player] [amount]'''
 +
|/economy give
 +
|给予玩家金钱
 +
|否
 +
|core.eco + core.eco.give
 +
|-
 +
|'''/eco take [player] [amount]'''
 +
|/economy take
 +
|拿走玩家的钱
 +
|否
 +
|core.eco + core.eco.take
 +
|-
 +
|'''/eco set [player] [amount]'''
 +
|/economy give
 +
|设置玩家的金钱
 +
|否
 +
|core.eco + core.eco.set
 +
|}
  
==菜单==
+
==补丁==
这个模块可以让你创建自定义菜单.
+
这个模块修复了一些漏洞.
  
 
'''特点:'''
 
'''特点:'''
  
* '''菜单指令''' - 每个菜单可使用不同的指令打开.
+
* '''Fishing Farm''' - 防止挂机钓鱼.
* '''权限''' - 每个菜单可需要不同的权限才能打开.
+
* '''Bed GUI''' - 防止在床上时打开菜单.
* '''显示条件''' - 根据条件显示或隐藏指定的菜单物品.
+
* '''Ender Farm''' - 防止使用末影螨建造小黑塔.
* '''点击条件''' - 满足条件才能点击物品.
+
* '''IP Limit''' - 限制同一IP加入的玩家上限.
* '''点击类型''' - 5种不同的点击类型.
+
* '''Creative Limiter''' - 防止玩家从创造模式中拿取物品.
* '''点击行为''' - 自定义的点击物品触发行为.
+
 
* '''支持PlaceholderAPI.'''
+
=== Settings.yml ===
 
+
patcher:
=== '''Settings.yml''' ===
+
  # 防钓鱼农场
暂无 :/ 请查看下面的菜单配置
+
  fishing: true
 +
  # 防止在床上时打开菜单
 +
  bed-gui: true
 +
  #  防止使用末影螨建造小黑塔
 +
  ender-farm: true
 +
  # 限制同一IP加入的玩家上限.
 +
  limit-ip: true
 +
  # 防止玩家从创造模式中拿取物品.
 +
  limit-creative: true
 +
 +
limit-creative:
 +
  # 创造模式限制的物品.
 +
  item-blacklist:
 +
  - SPLASH_POTION
 +
  - TNT
 +
  - EXPERIENCE_BOTTLE
 +
  - TRIDENT
 +
  - LINGERING_POTION
 +
  - ENDER_EYE
 +
  - BEDROCK
 +
  - END_PORTAL_FRAME
 +
  - ITEM_FRAME
 +
  - WITHER_SKELETON_SKULL
 +
  # 创造模式指令黑名单
 +
  cmd-blacklist:
 +
  - 'auc'
 +
  - 'ah'
 +
 
 +
=== 权限列表 ===
 +
 
 +
* '''core.bypass.creative''' - 忽略创造限制.
 +
 
 +
==菜单==
 +
这个模块可以让你创建自定义菜单.
 +
 
 +
'''特点:'''
 +
 
 +
* '''菜单指令''' - 每个菜单可使用不同的指令打开.
 +
* '''权限''' - 每个菜单可需要不同的权限才能打开.
 +
* '''显示条件''' - 根据条件显示或隐藏指定的菜单物品.
 +
* '''点击条件''' - 满足条件才能点击物品.
 +
* '''点击类型''' - 5种不同的点击类型.
 +
* '''点击行为''' - 自定义的点击物品触发行为.
 +
* '''支持PlaceholderAPI.'''
 +
 
 +
=== '''Settings.yml''' ===
 +
暂无 :/ 请查看下面的菜单配置
 
   
 
   
  
第1,025行: 第1,225行:
 
|}
 
|}
  
==随机传送==
+
 
这个模块可以让玩家使用随机传送
+
==地标==
 +
这个模块为你的服务器提供了简易的地标系统.
  
 
'''特点:'''
 
'''特点:'''
  
* '''多世界''' - 可在不同世界启用或关闭随机传送.
+
* '''地标菜单''' - 使用菜单查看地标.
* '''方块黑名单''' - 玩家不会传送到这些方块上.
+
* '''地标JSON列表''' - 可交互的聊天信息.
* '''传送动画''' - 地点搜索进度动画.
+
* '''地标欢迎消息''' - 发送消息给传送到地标的玩家.
 
+
* '''菜单编辑器''' - 使用菜单编辑器创建和管理地标.
 +
* '''分级地标''' - 设置不同权限组的玩家可使用的地标数.
 +
* '''地标权限''' - 设置传送地标所需权限.
 +
* '''地标价格''' - 设置传送所需费用.
 +
 
 
=== '''Settings.yml''' ===
 
=== '''Settings.yml''' ===
+
  <code>'''general:'''
  <code># 设置默认世界.
+
  # 是否使用地标菜单.
# 玩家可在这个世界内使用随机传送
+
  # 设置为false则只在聊天框内显示.
# 默认输入/rtp在此世界随机传送.
+
  '''use-gui:''' '''false'''
'''default-world:''' '''world'''
+
  # 地标图标描述.
# 强制传送玩家到默认世界.
+
  # 占位符:
# 设置为 '''false'''时在其他世界使用/rtp 会被取消传送.
+
  # '''- %cost%''' - 传送价格
'''force-to-default:''' '''false'''
+
  # '''- %access%''' - 是否可传送到该地标
# 最大搜索尝试次数.
+
  # '''- %owner%''' - 地标所有者.
'''max-attempts:''' '''5'''
+
  # '''- %id%''' - 内部地标名.
# 玩家不会传送到的方块上.
+
  # '''- %lore%''' - 地标图标描述.
'''block-blacklist:'''
+
  '''warp-lore:'''
'''-''' '''LAVA'''
+
  '''-''' '''<nowiki/>'&8&m                        ''''
'''-''' '''WATER'''
+
  '''-''' '''<nowiki/>'&f» &7价格: &a%cost%''''
  # 随机传送范围.
+
  '''-''' '''<nowiki/>'&f» &7是否可用: &f%access%''''
'''worlds:'''
+
  '''-''' '''<nowiki/>'&f» &7拥有者: &6%owner%''''
   '''world:'''
+
  '''-''' '''<nowiki/>'&f» &7ID: &6%id%''''
    '''x1:''' '''-5000'''
+
  '''-''' '''<nowiki/>'&8&m                        ''''
     '''x2:''' '''5000'''
+
  '''-''' '''<nowiki/>'%lore%''''
     '''z1:''' '''-5000'''
+
  # 不同等级的玩家可设置的地标数.
     '''z2:''' '''5000'''</code>
+
  # 插件自动检测玩家所在权限组.
+
  '''warps-by-rank:'''
 +
    '''VIP:''' '''2'''
 +
    '''Gold:''' '''3'''
 +
  '''gui:'''
 +
  # 地标列表菜单
 +
  # 菜单格式请看这里
 +
  '''title:''' '''<nowiki/>'&l地标''''
 +
   '''size:''' '''54'''
 +
  '''pages:''' '''1'''
 +
  '''custom-content:'''
 +
     '''filler:'''
 +
      '''material:''' '''BLACK_STAINED_GLASS_PANE'''
 +
      '''name:''' '''<nowiki>''</nowiki>'''
 +
      '''lore:''' '''[]'''
 +
      '''slots:''' '''45,46,47,48,49,50,51,52,53'''
 +
'''commands:'''
 +
  '''setdesc:'''
 +
    #  /setwarpdesc 指令的每行最大长度和行数
 +
     '''line-length:''' '''50'''
 +
     '''max-lines:''' '''5'''</code>
  
 
=== '''指令和权限''' ===
 
=== '''指令和权限''' ===
{| class="wikitable"
+
'''权限列表:'''
 +
 
 +
* '''core.warp.[id]''' - 允许传送到指定地标. '''[id]''' 为文件名.
 +
* '''core.bypass.warp.cost''' - 忽略传送费用.
 +
 
 +
{| class="wikitable"
 
!指令
 
!指令
 
!缩写
 
!缩写
第1,066行: 第1,295行:
 
!权限
 
!权限
 
|-
 
|-
|'''/rtp'''
+
|'''/warp'''
 +
|/warps
 +
|显示服务器的地标.
 +
|是
 +
|core.cmd.warp
 +
|-
 +
|'''/warp [warp]/warp [warp] [player]'''
 +
|/warps
 +
|传送到地标.
 +
|是
 +
 +
|core.cmd.warp
 +
core.cmd.warp.others
 +
|-
 +
|'''/warp editor'''
 +
|/warps
 +
|打开地标编辑器.
 +
|是
 +
|core.cmd.warp.editor
 +
|-
 +
|'''/setwarp [warp]'''
 
| -
 
| -
|随机传送.
+
|在你所在位置创建地标.
 
|是
 
|是
|core.cmd.rtp
+
|core.cmd.setwarp
|}
+
|-
 +
|'''/delwarp [warp]'''
 +
| -
 +
|删除指定地标.
 +
|否
 +
|core.cmd.delwarp
 +
core.cmd.delwarp.others
 +
|-
 +
|'''/setwarpdesc [warp] [text]'''
 +
| -
 +
|设置地标描述. [text] 可使用 '''/n 分成多行.'''
 +
|否
 +
|core.cmd.setwarpdesc
 +
core.cmd.setwarpdesc.others
 +
|-
 +
|'''/setwarpicon [warp] [material]'''
 +
| -
 +
|更改地标图标.
 +
|否
 +
|core.cmd.setwarpicon
 +
core.cmd.setwarpicon.others
 +
|-
 +
|'''/setwarpname [warp] [name]'''
 +
| -
 +
|更改地标名.(不是id)
 +
|否
 +
|core.cmd.setwarpname
 +
core.cmd.setwarpname.others
 +
|-
 +
|'''/setwarpwelcome [warp] [text]'''
 +
| -
 +
|设置地标欢迎消息.[text] 可使用 '''/n 分成多行.'''
 +
|否
 +
|core.cmd.setwarpwelcome
 +
core.cmd.setwarpwelcome.others
 +
|}
  
==计分版==
+
==欢迎消息==
这个模块提供了简易的计分版功能.
+
这个模块提供了欢迎玩家的功能.
 
 
'''需要安装ProtocolLib和PlaceholderAPI!'''
 
  
 
'''特点:'''
 
'''特点:'''
  
* '''动态显示''' - 在计分版显示动态文本.
+
* '''欢迎萌新''' - 在新玩家进入服务器时发送广播.
* '''轻量''' - 占用很少服务器资源.
+
* '''加入行为''' - 自定义玩家加入服务器时触发的行为.
 +
* '''动态标题''' - 在玩家加入时显示动态标题.
 +
* '''PlaceholderAPI''' -  支持 PlaceholderAPI.
  
=== '''Settings.yml''' ===
+
=== Settings.yml ===
  <code>'''board:'''
+
  # 萌新加入服务器时显示的消息.
   # 更新间隔.
+
# 留空关闭.
  # 20刻 = 1 秒
+
newbie-broadcast: '&e欢迎&6%player%&e来到我们的服务器!'
  '''update-interval:''' '''20'''
+
  # 计分版标题
+
# 欢迎萌新
  '''title:''' '''<nowiki/>'&e&l服务器名''''
+
newbies:
  # 计分版内容
+
  # 自定义行为.
  '''lines:'''
+
  join-actions:
  '''-''' '''<nowiki/>'&c┃┃ &f内存: &c%server_ram_max% MB''''
+
  - '[PLAYER_COMMAND] motd'
  '''-''' '''<nowiki/>'&c┃┃ &f在线玩家: &c%server_online%''''
+
  - '[FIREWORK]'
  '''-''' '''<nowiki/>'&c┃┃ &f时间: &c%server_time_kk:mm:ss%''''
+
   animated-titles:
  '''-''' '''<nowiki>''</nowiki>'''
+
    # 是否启用标题.
  '''-''' '''<nowiki/>'&e┃┃ &f称号: &e%vault_prefix%''''
+
    enabled: true
  '''-''' '''<nowiki/>'&e┃┃ &f金钱: &e%vault_eco_balance_formatted%''''
+
    # 动态间隔. 20 = 1 秒.
  '''-''' '''<nowiki/>'&e┃┃ &f位置: &e%player_x%&7, &e%player_y%&7, &e%player_z%''''
+
    interval: 2
   '''-''' '''<nowiki>''</nowiki>'''
+
    # 框架
   '''-''' '''<nowiki/>'&a┃┃ &f击杀: &a%statistic_player_kills%''''
+
    # 支持在这使用PlaceholderAPI!
  '''-''' '''<nowiki/>'&a┃┃ &f死亡: &a%statistic_deaths%''''
+
    title:
  '''-''' '''<nowiki/>'&a┃┃ &f在线时间: &a%statistic_days_played%''''
+
    - '&6«»'
  '''-''' '''<nowiki>''</nowiki>'''
+
    - '&6« »'
  '''-''' '''<nowiki/>'&bplay.servermc.com'<nowiki/>'''</code>
+
    - '&6« &e&lH &'
 
+
    - '&6« &e&lHe &'
=== '''指令和权限''' ===
+
    - '&6« &e&lHel &'
{| class="wikitable"
+
    - '&6« &e&lHell &'
!指令
+
    - '&&e&lHello &'
!缩写
+
    - '&&e&lHello! &'
!描述
+
    # 子标题框架.
!是否只能由玩家使用
+
    subtitle: []
!权限
+
|-
+
# 欢迎已注册的玩家.
|'''/board'''
+
users:
|/scoreboard
+
  # 自定义行为.
|开关计分版显示
+
  join-actions:
|是
+
  - '[PLAYER_COMMAND] motd'
|core.cmd.scoreboard
+
   - '[FIREWORK]'
|}
+
   animated-titles:
 +
    enabled: true
 +
    interval: 2
 +
    title:
 +
    - '&6«»'
 +
    - '&6« »'
 +
    - '&6« &e&lH &6»'
 +
    - '&6« &e&lHe &'
 +
    - '&6« &e&lHel &'
 +
    - '&6« &e&lHell &'
 +
    - '&6« &e&lHello &6»'
 +
    - '&6« &e&lHello! &6»'
 +
    subtitle: []
 +
 
 +
==多世界管理==
  
==TAB==
+
这个模块为你的服务器添加了简易的多世界系统.
这个模块可以让你自定义TAB内容.
 
  
 
'''特点:'''
 
'''特点:'''
  
* '''动态显示''' - 创建并使用自定义动态效果.
+
* '''加载/卸载''' - 使用指令加载或卸载自定义世界.
* '''页眉和页脚''' - 更改TAB的页眉和页脚.
+
* '''创建/删除''' - 使用指令创建或删除自定义世界.
* '''玩家名''' - 更改玩家名格式.
+
* '''传送''' - 使用指令传送到其他世界.
* '''玩家名标签''' - 更改玩家名称号及格式.
+
 
* '''PlaceholderAPI''' - 支持 PlaceholderAPI (仅限TAB).
+
'''生成器:'''
 +
 
 +
* '''NORMAL''' - 默认原版地形生成器.
 +
* '''EMPTY''' - 虚空世界生成器.
 +
* '''[PLUGIN]''' - 插件生成器.
 +
 
 +
=== '''Settings.yml''' ===
 +
暂无 :/
 +
  
=== Settings.yml ===
+
=== '''指令和权限''' ===
format:
+
{| class="wikitable"
  # 更新间隔.
+
!指令
  # 20 刻 = 1 秒, 1 刻 = 50 毫秒
+
!缩写
  update-interval: 1
+
!描述
  # 页眉和页脚.
+
!是否只能由玩家使用
  # 请使用这个格式来显示动态效果: %animation:[id]%,[id] 为配置内的动画名.
+
!权限
  header:
+
|-
  - '%animation:servername%'
+
|'''/worlds'''
  - ''
+
| -
  - '&7在线人数:%animation:online% %server_online%'
+
|世界列表
  - ''
+
|否
  - '&2››› &7时间: &a[%server_time_HH:mm:ss%] &7| &7日期: &a[%server_time_dd.MM.yyyy%] &2‹‹‹'
+
|core.cmd.worlds
  - ''
+
|-
  footer:
+
|'''/goto [world]'''
  - '&7'
+
| -
  - '&7商店:'
+
|传送到指定的世界
  - '%animation:web%'
+
|是
  - ''
+
|core.cmd.goto
  - '&e玩的愉快! :)'
+
|-
  - '&6ᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐ'
+
|'''/move [player] [world]'''
# 玩家名称和标签格式.
+
| -
# 玩家权限组由插件自动检测.
+
|传送玩家到指定的世界
# 权限越高的玩家在TAB的位置也越高.
+
|否
group-format:
+
|core.cmd.move
  Admins: '&7[&4管理员&7] &4%player%'
+
|-
  default: '&7[&8玩家&7] &7%player%'
+
|'''/createworld [name] (ENV) (GEN) (TYPE) (DIFF) (SEED) (STRUCTURES)'''
tag-group-format:
+
| -
  Admins:
+
|创建自定义设置的世界
    prefix: '&4管理员 &f'
+
|否
    suffix: ''
+
|core.cmd.createworld
  default:
+
|-
    prefix: '&7玩家 &f'
+
|'''/deleteworld [world]'''
    suffix: ''
+
| -
 +
|删除指定的自定义世界
 +
|否
 +
|core.cmd.deleteworld
 +
|-
 +
|'''/loadworld [world]'''
 +
| -
 +
|加载指定的自定义世界
 +
|否
 +
|core.cmd.loadworld
 +
|-
 +
|'''/unloadworld [world]'''
 +
| -
 +
|卸载指定的自定义世界
 +
|否
 +
|core.cmd.unloadworld
 +
|}
  
==地标==
+
=配置=
这个模块为你的服务器提供了简易的地标系统.
+
<br />
  
'''特点:'''
+
== '''自定义文本''' ==
 +
在插件文件夹内你可以找到 '''/custom_text/''' 文件夹,你可以在这个文件夹内创建自定义文本.
  
* '''地标菜单''' - 使用菜单查看地标.
+
所有文件必须使用'''.txt'''格式.文件名就是指令名.
* '''地标JSON列表''' - 可交互的聊天信息.
+
 
* '''地标欢迎消息''' - 发送消息给传送到地标的玩家.
+
当你输入这个指令你就可以看到文件内的文本消息.
* '''菜单编辑器''' - 使用菜单编辑器创建和管理地标.
+
 
* '''分级地标''' - 设置不同权限组的玩家可使用的地标数.
+
#中文乱码请使用ANSL编码编写中文内容
* '''地标权限''' - 设置传送地标所需权限.
+
 
* '''地标价格''' - 设置传送所需费用.
+
'''示例:''' 对于默认的 '''rules.txt''' 文件, 你可以在游戏内输入 '''/rules'''指令查看服务器规则.
 +
 
 +
每个文本文件的权限为 '''core.cmd.ctext.(file)'''. 比如: '''core.cmd.ctext.rules''' - 为 rules.txt 的权限
  
=== '''Settings.yml''' ===
+
== '''数据''' ==
  <code>'''general:'''
+
数据库存储设置.
   # 是否使用地标菜单.
+
  <code>'''data:'''
  # 设置为false则只在聊天框内显示.
+
   # 自动保存间隔.单位为分钟.
   '''use-gui:''' '''false'''
+
   '''auto-save:''' '''15'''
   # 地标图标描述.
+
   '''storage:'''
  # 占位符:
+
    # 存储类型. SQLite 或 MySQL
  # '''- %cost%''' - 传送价格
+
    '''type:''' '''sqlite'''
  # '''- %access%''' - 是否可传送到该地标
+
    #以下设置仅限MySQL.
  # '''- %owner%''' - 地标所有者.
+
    '''username:''' '''none'''
  # '''- %id%''' - 内部地标名.
+
    '''password:''' '''none'''
  # '''- %lore%''' - 地标图标描述.
+
    '''host:''' '''none'''
  '''warp-lore:'''
+
    '''database:''' '''none'''
  '''-''' '''<nowiki/>'&8&m                        ''''
+
   '''purge:'''
  '''-''' '''<nowiki/>'&f» &7价格: &a%cost%''''
+
    # 是否清除数据库老旧数据.
  '''-''' '''<nowiki/>'&f» &7是否可用: &f%access%''''
+
    '''enabled:''' '''false'''
   '''-''' '''<nowiki/>'&f» &7拥有者: &6%owner%''''
+
    # 多久前的数据会被清除.
  '''-''' '''<nowiki/>'&f» &7ID: &6%id%''''
+
    '''days:''' '''60'''</code>
  '''-''' '''<nowiki/>'&8&m                        ''''
+
 
  '''-''' '''<nowiki/>'%lore%''''
+
== '''全局''' ==
  # 不同等级的玩家可设置的地标数.
+
全局设置.<br>
   # 插件自动检测玩家所在权限组.
+
 
   '''warps-by-rank:'''
+
已更新为2.0.0版本的配置
    '''VIP:''' '''2'''
+
core:
    '''Gold:''' '''3'''
+
   #指令缩写
  '''gui:'''
+
   command-aliases: sunlight,core
   # 地标列表菜单
+
  #使用的语言
   # 菜单格式请看这里
+
  lang: cn
   '''title:''' '''<nowiki/>'&l地标''''
+
  data:
  '''size:''' '''54'''
+
   #自动保存的时间间隔
  '''pages:''' '''1'''
+
   auto-save: 15
  '''custom-content:'''
+
   storage:
     '''filler:'''
+
    数据库类型
      '''material:''' '''BLACK_STAINED_GLASS_PANE'''
+
    type: sqlite
      '''name:''' '''<nowiki>''</nowiki>'''
+
    username: none
      '''lore:''' '''[]'''
+
    password: none
      '''slots:''' '''45,46,47,48,49,50,51,52,53'''
+
     host: none
  '''commands:'''
+
    database: none
   '''setdesc:'''
+
  purge:
    # /setwarpdesc 指令的每行最大长度和行数
+
    自动清除旧数据
    '''line-length:''' '''50'''
+
    enabled: false
    '''max-lines:''' '''5'''</code>
+
    days: 60
 
+
  general:
=== '''指令和权限''' ===
+
   disable-rain: false
'''权限列表:'''
+
  #Essentials数据转移开关
 
+
  essentials-convert: false
* '''core.warp.[id]''' - 允许传送到指定地标. '''[id]''' 为文件名.
+
commands:
* '''core.bypass.warp.cost''' - 忽略传送费用.
+
  #禁用指令
 
+
  disabled: []
{| class="wikitable"
+
  #传送有效时间(单位为秒)
!指令
+
  tpa-time: 30
!缩写
+
  #/near 指令显示玩家的范围
!描述
+
  near-radius: 100
!是否只能由玩家使用
+
  #指令冷却时间(单位为秒)你可以在这里为任何插件的指令设置冷却
!权限
+
  cooldowns:
|-
+
    rtp: 60
|'''/warp'''
+
  # 你可以在这里自定义时间指令
|/warps
+
  # 默认的时间指令有 /day 和 /night
|显示服务器的地标.
+
  # 数值 = 世界时间刻数.
|是
+
  # 权限: core.cmd.time.[指令缩写]。比如: core.cmd.time.day
|core.cmd.warp
+
  time:
|-
+
    day: 0
|'''/warp [warp]/warp [warp] [player]'''
+
    night: 13000
|/warps
+
  #昵称最小和最大长度
|传送到地标.
+
  nick:
|是
+
    max-lenght: 20
+
    min-lenght: 3
|core.cmd.warp
+
    #禁止使用的昵称
core.cmd.warp.others
+
    black-list:
|-
+
    - Admin
|'''/warp editor'''
+
  #私聊音效
|/warps
+
  #设置为NONE关闭
|打开地标编辑器.
+
  sms:
|是
+
    sounds:
|core.cmd.warp.editor
+
      send: UI_BUTTON_CLICK
|-
+
      get: BLOCK_NOTE_BLOCK_BELL
|'''/setwarp [warp]'''
+
  list:
| -
+
    rank-format:
|在你所在位置创建地标.
+
      Admins: '%color%» &7管理员: %color%%players%'
|是
+
      Users: '%color%» &7玩家: %color%%players%'
|core.cmd.setwarp
+
    rank-color:
|-
+
      Admins: '&4'
|'''/delwarp [warp]'''
+
      Users: '&f'
| -
+
    format:
|删除指定地标.
+
    - '&6&m              &6&l[&e&l 玩家列表 &6&l]&m              '
|否
+
    - '%Admins%'
|core.cmd.delwarp
+
    - '%Users%'
core.cmd.delwarp.others
+
    - ''
|-
+
    - '&6共有&e%total%&6名玩家在线.'
|'''/setwarpdesc [warp] [text]'''
+
    - '&6&m                                                    '
| -
+
control:
|设置地标描述. [text] 可使用 '''/n 分成多行.'''
+
  #允许飞行的世界
|否
+
  fly:
|core.cmd.setwarpdesc
+
    enabled: true
core.cmd.setwarpdesc.others
+
    worlds:
|-
+
    - events
|'''/setwarpicon [warp] [material]'''
+
  #禁止使用特定游戏模式的世界
| -
+
  gamemode:
|更改地标图标.
+
    enabled: true
|否
+
    disallow:
|core.cmd.setwarpicon
+
    - SPECTATOR
core.cmd.setwarpicon.others
+
  spawning:
|-
+
    enabled: false
|'''/setwarpname [warp] [name]'''
+
    worlds:
| -
+
      some_world:
|更改地标名.(不是id)
+
        NATURAL: false
|否
+
  #使用上帝模式的世界
|core.cmd.setwarpname
+
  god-mode:
core.cmd.setwarpname.others
+
    worlds:
|-
+
    - events
|'''/setwarpwelcome [warp] [text]'''
+
  #模块开关
| -
+
  modules:
|设置地标欢迎消息.[text] 可使用 '''/n 分成多行.'''
+
   #AFK模块
|否
+
   AFK: true
|core.cmd.setwarpwelcome
+
   #封禁模块
core.cmd.setwarpwelcome.others
+
  BANS: true
|}
+
   #聊天模块
 
+
   CHAT: true
==欢迎消息==
+
  #椅子模块
这个模块提供了欢迎玩家的功能.
+
  CHAIRS: true
 
+
  #漏洞修复模块
'''特点:'''
+
  EXPLOITS: true
 
+
  #菜单模块
* '''欢迎萌新''' - 在新玩家进入服务器时发送广播.
+
  GUI: true
* '''加入行为''' - 自定义玩家加入服务器时触发的行为.
+
  #经济模块
* '''动态标题''' - 在玩家加入时显示动态标题.
+
  ECONOMY: true
* '''PlaceholderAPI''' -  支持 PlaceholderAPI.
+
  #随机传送模块
 
+
  RTP: true
=== Settings.yml ===
+
  #家模块
# 萌新加入服务器时显示的消息.
+
  HOMES: true
# 留空关闭.
+
  #礼包模块
newbie-broadcast: '&e欢迎&6%player%&e来到我们的服务器!'
+
  KITS: true
+
  #地标模块
  # 欢迎萌新
+
  WARPS: true
  newbies:
+
  #优化模块
   # 自定义行为.
+
  ANTI_LAGG: true
   join-actions:
+
   #TAB模块
   - '[PLAYER_COMMAND] motd'
+
   TAB: true
   - '[FIREWORK]'
+
   #多世界管理模块
   animated-titles:
+
   WORLDS: true
    # 是否启用标题.
+
   #计分板模块
    enabled: true
+
  SCOREBOARD: true
    # 动态间隔. 20 = 1 秒.
+
  #传送点模块
    interval: 2
+
  SPAWN: true
    # 框架
+
  #欢迎消息模块
    # 支持在这使用PlaceholderAPI!
+
  WELCOME: true
    title:
 
    - '&6«»'
 
    - '&6« »'
 
    - '&6« &e&lH &6»'
 
    - '&6« &e&lHe &6»'
 
    - '&6« &e&lHel &6»'
 
    - '&6« &e&lHell &6»'
 
    - '&6« &e&lHello &6»'
 
    - '&6« &e&lHello! &6»'
 
    # 子标题框架.
 
    subtitle: []
 
 
# 欢迎已注册的玩家.
 
users:
 
   # 自定义行为.
 
   join-actions:
 
   - '[PLAYER_COMMAND] motd'
 
   - '[FIREWORK]'
 
   animated-titles:
 
    enabled: true
 
    interval: 2
 
    title:
 
    - '&6«»'
 
    - '&6« »'
 
    - '&6« &e&lH &6»'
 
    - '&6« &e&lHe &6»'
 
    - '&6« &e&lHel &6»'
 
    - '&6« &e&lHell &6»'
 
    - '&6« &e&lHello &6»'
 
    - '&6« &e&lHello! &6»'
 
    subtitle: []
 
  
==多世界管理==
+
== 指令 ==
 
+
插件指令额外设置.
这个模块为你的服务器添加了简易的多世界系统.
+
commands:
 
+
  # 禁用的插件指令. 可使用指令缩写.
'''特点:'''
+
  #
 
+
  disabled: []
* '''加载/卸载''' - 使用指令加载或卸载自定义世界.
+
  # 传送请求过期时间.
* '''创建/删除''' - 使用指令创建或删除自定义世界.
+
  tpa-time: 30
* '''传送''' - 使用指令传送到其他世界.
+
  # /near 指令的搜索范围.
 
+
  near-radius: 100
'''生成器:'''
+
  # 指令冷却. 支持其他插件的指令及其缩写.
 
+
  #
* '''NORMAL''' - 默认原版地形生成器.
+
  cooldowns:
* '''EMPTY''' - 虚空世界生成器.
+
    rtp: 60
* '''[PLUGIN]''' - 插件生成器.
+
  # 设置 /time 指令的缩写.
 
+
  # 默认添加了两个指令: /day 和 /night
=== '''Settings.yml''' ===
+
  # 时间必须是游戏刻数.
暂无 :/
+
  time:
+
    day: 0
 +
    night: 13000
 +
  # /nick 指令.
 +
  nick:
 +
    max-lenght: 20
 +
    min-lenght: 3
 +
    black-list:
 +
    - Admin
 +
  # /tell 指令音效.
 +
  sms:
 +
    sounds:
 +
      send: UI_BUTTON_CLICK
 +
      get: BLOCK_NOTE_BLOCK_BELL
 +
  # 设置 /list 指令格式.
 +
  # 插件自动检测玩家权限组.
 +
  list:
 +
    rank-format:
 +
      Admins: <nowiki/>'%color%›› &f管理员: %players%'
 +
      Users: <nowiki/>'%color%›› &f玩家: %players%'
 +
    rank-color:
 +
      Admins: <nowiki/>'&4'
 +
      Users: <nowiki/>'&7'
 +
    format:
 +
    - <nowiki/>'&8&m----------------&e&l 玩家列表 &8&m----------------'
 +
    - <nowiki/>'%Admins%'
 +
    - <nowiki/>'%Users%'
 +
    - <nowiki/>'&6共有&e%total%名&6玩家在线.'<nowiki/>
  
=== '''指令和权限''' ===
+
== 控制 ==
{| class="wikitable"
+
control:
!指令
+
  fly:
!缩写
+
    # 是否启用控制.
 +
    enabled: true
 +
    # 关闭飞行的世界列表.
 +
    worlds:
 +
    - events
 +
  gamemode:
 +
    # 是否启用游戏模式控制.
 +
    enabled: true
 +
    # 禁止使用的游戏模式.
 +
    disallow:
 +
    - SPECTATOR
 +
  spawning:
 +
    # 是否启用生成控制.
 +
    enabled: false
 +
    # 不会生成怪物的世界列表.
 +
    worlds:
 +
      some_world:
 +
        NATURAL: false # 在此世界关闭自然生成生物.
 +
  god-mode:
 +
    worlds:
 +
    - events
 +
 
 +
=指令和权限=
 +
===新版===
 +
{| class="wikitable"
 +
!指令
 +
!缩写/别名
 
!描述
 
!描述
!是否只能由玩家使用
+
!仅限玩家
 
!权限
 
!权限
 
|-
 
|-
|'''/worlds'''
+
|/air [数量]
 +
/air [数量] (玩家名)
 
| -
 
| -
|世界列表
+
|更改玩家的氧气值
|否
+
|
|core.cmd.worlds
+
 +
|sunlight.cmd.air
 +
sunlight.cmd.air.others
 
|-
 
|-
|'''/goto [world]'''
+
|/anvil (玩家名)
 
| -
 
| -
|传送到指定的世界
+
|打开铁砧
 
|是
 
|是
|core.cmd.goto
+
 +
|sunlight.cmd.anvil
 +
sunlight.cmd.anvil.others
 
|-
 
|-
|'''/move [player] [world]'''
+
|/armor [玩家名]
 
| -
 
| -
|传送玩家到指定的世界
+
|查看并管理玩家的盔甲
|
+
|
|core.cmd.move
+
|sunlight.cmd.armor
 
|-
 
|-
|'''/createworld [name] (ENV) (GEN) (TYPE) (DIFF) (SEED) (STRUCTURES)'''
+
|/back (玩家名)
 
| -
 
| -
|创建自定义设置的世界
+
|传送到上一个位置
 +
|是
 +
 +
|sunlight.cmd.back
 +
sunlight.cmd.back.others
 +
sunlight.cmd.back.bypass.worlds
 +
|-
 +
|/broadcast [文本]
 +
|/bc
 +
|广播消息
 
|否
 
|否
|core.cmd.createworld
+
|sunlight.cmd.broadcast
 
|-
 
|-
|'''/deleteworld [world]'''
+
|/burn [玩家名] [时间]
| -
+
|/ignite
|删除指定的自定义世界
+
|点燃玩家
 
|否
 
|否
|core.cmd.deleteworld
+
|sunlight.cmd.burn
 
|-
 
|-
|'''/loadworld [world]'''
+
|/clearchat
| -
+
|/cchat
|加载指定的自定义世界
+
|清空聊天框
 
|否
 
|否
|core.cmd.loadworld
+
|sunlight.cmd.clearchat
 +
|-
 +
|/clearinventory (玩家名)
 +
|/clearinv, /clear, /ci
 +
|清空玩家背包
 +
|是
 +
 +
|sunlight.cmd.clearinventory
 +
sunlight.cmd.clearinventory.others
 
|-
 
|-
|'''/unloadworld [world]'''
+
|/condense
 
| -
 
| -
|卸载指定的自定义世界
+
|将粒/锭等物品转换为锭/块。
|
+
|是
|core.cmd.unloadworld
+
|sunlight.cmd.condense
|}
+
|-
 
+
|/disposal
=配置=
+
| -
<br />
+
|打开垃圾桶
 
+
|
== '''自定义文本''' ==
+
|sunlight.cmd.disposal
在插件文件夹内你可以找到 '''/custom_text/''' 文件夹,你可以在这个文件夹内创建自定义文本.
+
|-
 
+
|/enchant [魔咒] [等级]
所有文件必须使用'''.txt'''格式.文件名就是指令名.
+
|/ench
 
+
|给手中物品附魔或祛魔
当你输入这个指令你就可以看到文件内的文本消息.
+
|是
 
+
|sunlight.cmd.enchant
'''示例:''' 对于默认的 '''rules.txt''' 文件, 你可以在游戏内输入 '''/rules'''指令查看服务器规则.
+
|-
 
+
|/enchanting
每个文本文件的权限为 '''core.cmd.ctext.(file)'''. 比如: '''core.cmd.ctext.rules''' - 为 rules.txt 的权限
+
| -
 
+
|打开附魔台
== '''数据''' ==
+
|是
数据库存储设置.
+
|sunlight.cmd.enchanting
<code>'''data:'''
+
|-
  # 自动保存间隔.单位为分钟.
+
|/enderchest (玩家名)
  '''auto-save:''' '''15'''
+
|/echest, /ec
  '''storage:'''
+
|打开玩家的末影箱
    # 存储类型. SQLite 或 MySQL
+
|是
    '''type:''' '''sqlite'''
+
|sunlight.cmd.enderchest
    #以下设置仅限MySQL.
+
sunlight.cmd.enderchest.others
    '''username:''' '''none'''
+
|-
    '''password:''' '''none'''
+
|/exp [set/give] [数量]
    '''host:''' '''none'''
+
/exp [set/give] [玩家名] [数量]
    '''database:''' '''none'''
+
|/xp
  '''purge:'''
+
|更改玩家的经验值
    # 是否清除数据库老旧数据.
+
|是
    '''enabled:''' '''false'''
+
    # 多久前的数据会被清除.
+
|sunlight.cmd.exp
    '''days:''' '''60'''</code>
+
sunlight.cmd.exp.others
 
+
|-
== '''全局''' ==
+
|/extinguish (玩家名)
全局设置.<br>
+
|/ext
 
+
|灭掉玩家身上的火
已更新为2.0.0版本的配置
+
|是
core:
+
  #指令缩写
+
|sunlight.cmd.ext
  command-aliases: sunlight,core
+
sunlight.cmd.ext.others
  #使用的语言
+
|-
  lang: cn
+
|/feed (玩家名)
data:
+
| -
  #自动保存的时间间隔
+
|加满玩家饥饿度
  auto-save: 15
+
|是
  storage:
+
    数据库类型
+
|sunlight.cmd.feed
    type: sqlite
+
sunlight.cmd.feed.others
    username: none
+
|-
    password: none
+
|/fly (玩家名)
    host: none
+
/fly [0/1] (玩家名)
    database: none
+
| -
  purge:
+
|切换飞行模式
    自动清除旧数据
+
|是
    enabled: false
+
    days: 60
+
|sunlight.cmd.fly
general:
+
sunlight.cmd.fly.others
  disable-rain: false
+
sunlight.cmd.fly.bypass.worlds
  #Essentials数据转移开关
+
|-
  essentials-convert: false
+
|/gm [0/1/2/3] (玩家名)
commands:
+
/gms (玩家名)
  #禁用指令
+
/gmc (玩家名)
  disabled: []
+
/gma (玩家名)
  #传送有效时间(单位为秒)
+
/gmsp (玩家名)
  tpa-time: 30
+
|/gamemode
  #/near 指令显示玩家的范围
+
|更改玩家的游戏模式
  near-radius: 100
+
|是
  #指令冷却时间(单位为秒)你可以在这里为任何插件的指令设置冷却
+
  cooldowns:
+
|sunlight.cmd.gamemode
    rtp: 60
+
sunlight.cmd.gamemode.survival
  # 你可以在这里自定义时间指令
+
sunlight.cmd.gamemode.creative
  # 默认的时间指令有 /day 和 /night
+
sunlight.cmd.gamemode.adventure
  # 数值 = 世界时间刻数.
+
sunlight.cmd.gamemode.spectator
  # 权限: core.cmd.time.[指令缩写]。比如: core.cmd.time.day
+
sunlight.cmd.gamemode.others
  time:
+
|-
    day: 0
+
|/give [玩家名] [材料名] (数量)
    night: 13000
+
| -
  #昵称最小和最大长度
+
|给与玩家物品
  nick:
+
|是
    max-lenght: 20
+
    min-lenght: 3
+
|sunlight.cmd.give
    #禁止使用的昵称
+
|-
    black-list:
+
|/god (玩家名)
    - Admin
+
/god [0/1] (玩家名)
  #私聊音效
+
| -
  #设置为NONE关闭
+
|切换玩家的上帝模式
  sms:
+
|否
    sounds:
+
|sunlight.cmd.god
      send: UI_BUTTON_CLICK
+
sunlight.cmd.god.others
      get: BLOCK_NOTE_BLOCK_BELL
+
sunlight.cmd.god.bypass.worlds
  list:
+
|-
    rank-format:
+
|/hat
      Admins: '%color%» &7管理员: %color%%players%'
+
| -
      Users: '%color%» &7玩家: %color%%players%'
+
|将手中物品戴到头上
    rank-color:
+
|是
      Admins: '&4'
+
|sunlight.cmd.hat
      Users: '&f'
+
|-
    format:
+
|/heal (玩家名)
    - '&6&m              &6&l[&e&l 玩家列表 &6&l]&m              '
+
| -
    - '%Admins%'
+
|置于玩家
    - '%Users%'
+
|是
    - ''
+
    - '&6共有&e%total%&6名玩家在线.'
+
|sunlight.cmd.heal
    - '&6&m                                                    '
+
sunlight.cmd.heal.others
control:
+
|-
  #允许飞行的世界
+
|/ignore [玩家名]
  fly:
+
| -
    enabled: true
+
|屏蔽特定玩家
    worlds:
+
|是
    - events
+
|sunlight.cmd.ignore
  #禁止使用特定游戏模式的世界
+
sunlight.cmd.ignore.bypass
  gamemode:
+
|-
    enabled: true
+
|/invsee [玩家名]
    disallow:
+
|/inv
    - SPECTATOR
+
|查看并管理玩家背包
  spawning:
+
|是
    enabled: false
+
|sunlight.cmd.inv
    worlds:
+
sunlight.cmd.inv.others
      some_world:
+
|-
        NATURAL: false
+
|/item [材料名] (数量)
  #使用上帝模式的世界
+
| -
  god-mode:
+
|获得特定物品
    worlds:
+
|是
    - events
+
|sunlight.cmd.item
#模块开关
+
|-
modules:
+
|/itemname [name]
  #AFK模块
+
|/rename
  AFK: true
+
|重命名手中物品
  #封禁模块
+
|是
  BANS: true
+
|sunlight.cmd.itemname
  #聊天模块
+
|-
  CHAT: true
+
|<nowiki>/itemlore [add|del|clear]</nowiki>
  #椅子模块
+
|/relore
  CHAIRS: true
+
|修改物品lore
  #漏洞修复模块
+
|是
  EXPLOITS: true
+
|sunlight.cmd.itemlore
  #菜单模块
+
|-
  GUI: true
+
|/list
  #经济模块
+
|/online, /players
  ECONOMY: true
+
|显示玩家列表
  #随机传送模块
+
|否
  RTP: true
+
|sunlight.cmd.list
  #家模块
+
|-
  HOMES: true
+
|/me [action]
  #礼包模块
+
| -
  KITS: true
+
|在聊天框内使用action
  #地标模块
+
|是
  WARPS: true
+
|sunlight.cmd.me
  #优化模块
+
|-
  ANTI_LAGG: true
+
|/mobkill [type]
  #TAB模块
+
|/killmob
  TAB: true
+
|杀死特定类型的生物
  #多世界管理模块
+
|是
  WORLDS: true
+
|sunlight.cmd.mobkill
  #计分版模块
+
|-
  SCOREBOARD: true
+
|/more
  #传送点模块
+
| -
  SPAWN: true
+
|让手中物品变为1组
  #欢迎消息模块
+
|是
  WELCOME: true
+
|sunlight.cmd.more
 
+
|-
== 指令 ==
+
|/near
插件指令额外设置.
+
|/nearby
commands:
+
|显示最近的玩家
  # 禁用的插件指令. 可使用指令缩写.
+
|是
  #
+
|sunlight.cmd.near
  disabled: []
+
|-
  # 传送请求过期时间.
+
|/nick (nick)
  tpa-time: 30
+
/nick [玩家名] (nick)
  # /near 指令的搜索范围.
+
|/name, /nickname
  near-radius: 100
+
|更改或重置玩家昵称
  # 指令冷却. 支持其他插件的指令及其缩写.
+
|是
  #
+
  cooldowns:
+
|sunlight.cmd.nick
    rtp: 60
+
sunlight.cmd.nick.others
  # 设置 /time 指令的缩写.
+
sunlight.cmd.nick.bypass.words
  # 默认添加了两个指令: /day 和 /night
+
sunlight.cmd.nick.bypass.length
  # 时间必须是游戏刻数.
+
|-
  time:
+
|/nophantom (玩家名)
    day: 0
+
|/antiphantom
    night: 13000
+
|不在玩家附近生成幻翼
  # /nick 指令.
+
|是
  nick:
+
    max-lenght: 20
+
|sunlight.cmd.nophantom
    min-lenght: 3
+
sunlight.cmd.nophantom.others
    black-list:
+
|-
    - Admin
+
|/playerinfo [玩家名]
  # /tell 指令音效.
+
|/pinfo
  sms:
+
|显示玩家信息 支持PlaceholderAPI.
    sounds:
+
|否
      send: UI_BUTTON_CLICK
+
|sunlight.cmd.playerinfo
      get: BLOCK_NOTE_BLOCK_BELL
+
|-
  # 设置 /list 指令格式.
+
|/potion [effect] [amplifier] [duration]
  # 插件自动检测玩家权限组.
+
| -
  list:
+
|创建或修改药水
    rank-format:
+
|是
      Admins: <nowiki/>'%color%›› &f管理员: %players%'
+
|sunlight.cmd.potion
      Users: <nowiki/>'%color%›› &f玩家: %players%'
+
|-
    rank-color:
+
|/repair (all)
      Admins: <nowiki/>'&4'
+
|/fix
      Users: <nowiki/>'&7'
+
|修复手中或背包内全部物品
    format:
+
|是
    - <nowiki/>'&8&m----------------&e&l 玩家列表 &8&m----------------'
+
|sunlight.cmd.repair
    - <nowiki/>'%Admins%'
+
|-
    - <nowiki/>'%Users%'
+
|/reply [文本]
    - <nowiki/>'&6共有&e%total%名&6玩家在线.'<nowiki/>
+
|/r
 
+
|回复私聊
== 控制 ==
+
|是
control:
+
|sunlight.cmd.reply
  fly:
+
|-
    # 是否启用控制.
+
|/seen [玩家名]
    enabled: true
+
| -
    # 关闭飞行的世界列表.
+
|查看玩家最后在线时间
    worlds:
+
|否
    - events
+
|sunlight.cmd.seen
  gamemode:
+
|-
    # 是否启用游戏模式控制.
+
|/skull [玩家名]
    enabled: true
+
|/head
    # 禁止使用的游戏模式.
+
|获得特定玩家的头颅
    disallow:
+
|是
    - SPECTATOR
+
|sunlight.cmd.skull
  spawning:
+
|-
    # 是否启用生成控制.
+
|/sms [玩家名] [文本]
    enabled: false
+
|/tell, /t, /m, /msg, /message, /w, /whisper, /pm
    # 不会生成怪物的世界列表.
+
|发送私聊消息
    worlds:
+
|否
      some_world:
+
|sunlight.cmd.tell
        NATURAL: false # 在此世界关闭自然生成生物.
+
|-
  god-mode:
+
|/socialspy (玩家名)
    worlds:
+
/socialspy [0/1] (玩家名)
    - events
+
| -
 +
|开启或关闭监控玩家私聊
 +
|是
 +
 +
|sunlight.cmd.socialspy
 +
sunlight.cmd.socialspy.others
 +
|-
 +
|/spawner [type]
 +
| -
 +
|更改刷怪笼类型
 +
|是
 +
|sunlight.cmd.spawner
 +
sunlight.cmd.spawner.[type]
 +
|-
 +
|/spawnmob [type] [数量]
 +
|/mob
 +
|召唤生物
 +
|是
 +
|sunlight.cmd.spawnmob
 +
sunlight.cmd.spawnmob.[type]
 +
|-
 +
|/speed (数量) (玩家名)
 +
| -
 +
|更改玩家速度
 +
|是
 +
 +
|sunlight.cmd.speed
 +
sunlight.cmd.speed.others
 +
|-
 +
|/sudo [玩家名] [command]
 +
/sudo [玩家名] c:[文本]
 +
| -
 +
|强制玩家执行指令和发送文本
 +
|是
 +
 +
|sunlight.cmd.sudo
 +
|-
 +
|/suicide
 +
|/killme, /killmeplease
 +
|自杀
 +
|是
 +
|sunlight.cmd.suicide
 +
|-
 +
|/summon [玩家名]
 +
|/s
 +
|传送玩家到你身边
 +
|是
 +
|sunlight.cmd.summon
 +
|-
 +
|/system
 +
|/tps, /gc, /mem
 +
|服务器系统信息
 +
|否
 +
|sunlight.cmd.system
 +
|-
 +
|/time (world) (ticks)
 +
| -
 +
|显示当前世界时间
 +
|是
 +
|sunlight.cmd.time
 +
sunlight.cmd.time.set
 +
|-
 +
|/thunder (玩家名)
 +
|/smite
 +
|召唤雷电
 +
|是
 +
 +
|sunlight.cmd.thunder
 +
sunlight.cmd.thunder.others
 +
|-
 +
|/top (玩家名)
 +
|/up
 +
|传送到所在处最高方块
 +
|是
 +
 +
|sunlight.cmd.top
 +
sunlight.cmd.top.others
 +
|-
 +
|/tpaccept (玩家名)
 +
| -
 +
|接受传送请求
 +
|是
 +
|sunlight.cmd.tpaccept
 +
|-
 +
|/tpa [玩家名]
 +
|/call
 +
|发送传送请求
 +
|是
 +
|sunlight.cmd.tpa
 +
|-
 +
|/tpahere [玩家名]
 +
| -
 +
|请求玩家传送到你身边
 +
|是
 +
|sunlight.cmd.tpahere
 +
|-
 +
|/tp [玩家名]
 +
/tp [传送玩家名] [目标玩家]
 +
| -
 +
|传送到玩家身边或传送特定玩家
 +
|是
 +
 +
|sunlight.cmd.tp
 +
sunlight.cmd.tp.others
 +
|-
 +
|/tpdeny (玩家名)
 +
| -
 +
|拒绝传送请求
 +
|是
 +
 +
|sunlight.cmd.tpdeny
 +
sunlight.cmd.tpdeny.others
 +
|-
 +
|/tppos [x] [y] [z] (玩家名)
 +
| -
 +
|传送到特定坐标
 +
|是
 +
 +
|sunlight.cmd.tppos
 +
sunlight.cmd.tppos.others
 +
|-
 +
|/tptoggle (0/1) (玩家名)
 +
| -
 +
|开启或关闭传送请求
 +
|是
 +
 +
|sunlight.cmd.tptoggle
 +
sunlight.cmd.tptoggle.others
 +
|-
 +
|/unignore [玩家名]
 +
| -
 +
|取消屏蔽玩家
 +
|是
 +
 +
|sunlight.cmd.unignore
 +
|-
 +
|/vanish (玩家名)
 +
|/v
 +
|切换隐身模式
 +
|是
 +
 +
|sunlight.cmd.vanish
 +
sunlight.cmd.vanish.others
 +
|-
 +
|/weather [sun/storm/thunder] (world)
 +
| -
 +
|更改世界天气
 +
|否
 +
|sunlight.cmd.weather
 +
|-
 +
|/workbench
 +
|/wb
 +
|打开控制台
 +
|是
 +
|sunlight.cmd.workbench
 +
|}
  
=指令和权限=
+
===旧版===
 
'''所有权限:'''
 
'''所有权限:'''
  
第2,185行: 第2,707行:
  
 
=== 目标选择器 ===
 
=== 目标选择器 ===
Defines the targets for action executors.你可以随意设置。
+
定义行为执行器的目标.你可以随意设置。
  
 
目标选择器格式:
 
目标选择器格式:
第2,200行: 第2,722行:
  
 
  <code>123</code>
 
  <code>123</code>
Available Target Selectors:
+
可用的目标选择器:
 
{| class="wikitable"
 
{| class="wikitable"
 
!名称
 
!名称
第2,294行: 第2,816行:
  
 
=== 行为执行器 ===
 
=== 行为执行器 ===
Defines the action type and parameters.
+
定义行为类型和参数.
  
Action Executor Format:
+
行为执行器格式:
  
 
Every action parameter name MUST starts with '~' and ends with ':'
 
Every action parameter name MUST starts with '~' and ends with ':'
第2,321行: 第2,843行:
 
|Action Bar
 
|Action Bar
 
|[ACTION_BAR]
 
|[ACTION_BAR]
|Sends message to  target's action bar.
+
|通过行动条发送消息.
 
|§  Delay
 
|§  Delay
  
第2,327行: 第2,849行:
  
 
§  Message
 
§  Message
|[ACTION_BAR]  ~message: &aHello, %executor%!; ~target: self;
+
|[ACTION_BAR]  ~message: &a你好, %executor%!; ~target: self;
 
|-
 
|-
 
|Broadcast
 
|Broadcast
 
|[BROADCAST]
 
|[BROADCAST]
|Broadcasts the  message.
+
|发送广播.
 
|§  Delay
 
|§  Delay
  
 
§  Message
 
§  Message
|[BROADCAST]  ~message: &aHello everyone!;
+
|[BROADCAST]  ~message: &a大家好!;
 
|-
 
|-
 
|Burn
 
|Burn
 
|[BURN]
 
|[BURN]
|Burns the  target.
+
|点燃目标.
 
|§  Delay
 
|§  Delay
  
第2,349行: 第2,871行:
 
|Command Player
 
|Command Player
 
|[COMMAND_PLAYER]
 
|[COMMAND_PLAYER]
|Executes a  command by action executor.
+
|使用行动执行器执行指令.
 
|§  Delay
 
|§  Delay
  
第2,359行: 第2,881行:
 
|Command Console
 
|Command Console
 
|[COMMAND_CONSOLE]
 
|[COMMAND_CONSOLE]
|Executes a  command by console.
+
|以控制台身份执行指令.
 
|§  Delay
 
|§  Delay
  
第2,369行: 第2,891行:
 
|Command Op
 
|Command Op
 
|[COMMAND_OP]
 
|[COMMAND_OP]
|Executes a  command by action executor as OP.
+
|以管理员身份执行指令.
 
|§  Delay
 
|§  Delay
  
第2,379行: 第2,901行:
 
|Firework
 
|Firework
 
|[FIREWORK]
 
|[FIREWORK]
|Launch firework  at the target location.
+
|在目标位置发射烟花火箭.
 
|§  Delay
 
|§  Delay
  
第2,387行: 第2,909行:
 
|Hook
 
|Hook
 
|[HOOK]
 
|[HOOK]
|Hooks target to  the executor.
+
|将目标勾连到执行器内.
 
|§  Delay
 
|§  Delay
  
第2,395行: 第2,917行:
 
|Message
 
|Message
 
|[MESSAGE]
 
|[MESSAGE]
|Sends message to  target.
+
|给目标发送消息.
 
|§  Delay
 
|§  Delay
  
第2,405行: 第2,927行:
 
|Lightning
 
|Lightning
 
|[LIGHTNING]
 
|[LIGHTNING]
|Summons  lightning at the target location.
+
|在目标地点召唤闪电.
 
|§  Delay
 
|§  Delay
  
第2,473行: 第2,995行:
 
|Projectile
 
|Projectile
 
|[PROJECTILE]
 
|[PROJECTILE]
|Launch  projectile to the target.
+
|对目标发射弹射物.
 
|§  Delay
 
|§  Delay
  
第2,488行: 第3,010行:
 
|Sound
 
|Sound
 
|[SOUND]
 
|[SOUND]
|Plays sound to  the target.
+
|对目标播放音效.
 
|§  Delay
 
|§  Delay
  
第2,518行: 第3,040行:
 
|Titles
 
|Titles
 
|[TITLES]
 
|[TITLES]
|Sends titles to  the target.
+
|对目标发送标题.
 
|§  Delay
 
|§  Delay
  
第2,536行: 第3,058行:
 
|Vault Add
 
|Vault Add
 
|[VAULT_ADD]
 
|[VAULT_ADD]
|Adds or takes  money from target's vault balance.
+
|修改目标的金额.
 
|§  Delay
 
|§  Delay
  
第2,553行: 第3,075行:
  
  
Available Parameters:
+
可用参数:
 
{| class="wikitable"
 
{| class="wikitable"
 
|名称
 
|名称
第2,559行: 第3,081行:
 
|Destination
 
|Destination
 
|描述
 
|描述
|Usage Example
+
|用法示例
 
|-
 
|-
 
|Allow Self
 
|Allow Self

2021年6月8日 (二) 14:46的最新版本

SunLight

插件名
SunLight-Core|SunLight

作者
NightExpress

兼容版本
1.14-1.15

原文
[1]

本页面基于早期版本进行翻译,部分内容已过期,最新版的汉化配置请查看MCBBS搬运帖,以下的权限节点除增强模块外都为旧版
core.开头的为旧版权限节点

介绍  · Introduction

这是款轻量级的基础插件,包含了很多对于管理服务器很有用的功能. 插件分成多个模块,你可以随意关闭插件的任意模块.

模块  · Modules

模块

增强

在3.0版本后一些模块归入了增强模块内。

设置

权限

权限 描述
sunlight.enhancements.signs.color 允许用户在告示牌内使用彩色文字

配置

#AFK模块
afk:
  enabled: true
#椅子整理模块
chairs:
  enabled: true
#箱子整理模块
chest-sort:
  enabled: true
#物理效果
physics:
  explosions:
    # 开关爆炸的物理效果
    enabled: false
#Tab模块
tab:
  enabled: true
#告示牌
signs:
  colors:
    #开关告示牌的彩色文字
    enabled: true
#计分板模块
scoreboard:
  enabled: true

AFK

settings.yml

general:
  # 多久后玩家进入离开游戏状态
  # 需要权限: core.cmd.afk
  afk-time: 600
  # AFK多久后玩家会被踢出服务器. 设置为 -1 关闭.
  # 无视被踢的权限为: core.bypass.afk.kick
  kick-time: 1200
  # 检测间隔.
  check-interval: 5
  # 行为列表, 对进入/离开AFK模式的玩家执行.
  # 行为列表.
  enter-afk-actions: []
  exit-afk-actions: []

椅子

这个模块可以让玩家坐在半砖、台阶和地毯上.


注:2.3版本之后chair模块转移到了module/enhancements文件夹中的模块
    2.3版本之后新增chairs.yml 你可以配置什么方块能坐 什么不能坐

指令和权限

指令 缩写 描述 是否只能由玩家使用 权限
/chairs - 切换座椅模式. core.cmd.chairs

随机传送

这个模块可以让玩家使用随机传送

特点:

  • 多世界 - 可在不同世界启用或关闭随机传送.
  • 方块黑名单 - 玩家不会传送到这些方块上.
  • 传送动画 - 地点搜索进度动画.

Settings.yml

# 设置默认世界.
# 玩家可在这个世界内使用随机传送
# 默认输入/rtp在此世界随机传送.
default-world: world
# 强制传送玩家到默认世界.
# 设置为 false时在其他世界使用/rtp 会被取消传送.
force-to-default: false
# 最大搜索尝试次数.
max-attempts: 5
# 玩家不会传送到的方块上.
block-blacklist:
- LAVA
- WATER
# 随机传送范围.
worlds:
  world:
    x1: -5000
    x2: 5000
    z1: -5000
    z2: 5000

指令和权限

指令 缩写 描述 是否只能由玩家使用 权限
/rtp - 随机传送. core.cmd.rtp

计分板

这个模块提供了简易的计分板功能.

需要安装ProtocolLib和PlaceholderAPI!

特点:

  • 动态显示 - 在计分板显示动态文本.
  • 轻量 - 占用很少服务器资源.

Settings.yml

board:
  # 更新间隔.
  # 20刻 = 1 秒
  update-interval: 20
  # 计分板标题
  title: '&e&l服务器名'
  # 计分板内容
  lines:
  - '&c┃┃ &f内存: &c%server_ram_max% MB'
  - '&c┃┃ &f在线玩家: &c%server_online%'
  - '&c┃┃ &f时间: &c%server_time_kk:mm:ss%'
  - ''
  - '&e┃┃ &f称号: &e%vault_prefix%'
  - '&e┃┃ &f金钱: &e%vault_eco_balance_formatted%'
  - '&e┃┃ &f位置: &e%player_x%&7, &e%player_y%&7, &e%player_z%'
  - ''
  - '&a┃┃ &f击杀: &a%statistic_player_kills%'
  - '&a┃┃ &f死亡: &a%statistic_deaths%'
  - '&a┃┃ &f在线时间: &a%statistic_days_played%'
  - ''
  - '&bplay.servermc.com'

指令和权限

指令 缩写 描述 是否只能由玩家使用 权限
/board /scoreboard 开关计分板显示 core.cmd.scoreboard

箱子整理

指令和权限

指令 缩写 描述 是否只能由玩家使用 权限
/chestsort /sort 开关箱子整理 sunlight.enhancements.chestsort.cmd.chestsort

TAB

这个模块可以让你自定义TAB内容.

特点:

  • 动态显示 - 创建并使用自定义动态效果.
  • 页眉和页脚 - 更改TAB的页眉和页脚.
  • 玩家名 - 更改玩家名格式.
  • 玩家名标签 - 更改玩家名称号及格式.
  • PlaceholderAPI - 支持 PlaceholderAPI (仅限TAB).

Settings.yml

format:
  # 更新间隔.
  # 20 刻 = 1 秒, 1 刻 = 50 毫秒
  update-interval: 1
  # 页眉和页脚.
  # 请使用这个格式来显示动态效果: %animation:[id]%,[id] 为配置内的动画名.
  header:
  - '%animation:servername%'
  - 
  - '&7在线人数:%animation:online% %server_online%'
  - 
  - '&2››› &7时间: &a[%server_time_HH:mm:ss%] &7| &7日期: &a[%server_time_dd.MM.yyyy%] &2‹‹‹'
  - 
  footer:
  - '&7'
  - '&7商店:'
  - '%animation:web%'
  - 
  - '&e玩的愉快! :)'
  - '&6ᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐᚐ'
# 玩家名称和标签格式.
# 玩家权限组由插件自动检测.
# 权限越高的玩家在TAB的位置也越高.
group-format:
  Admins: '&7[&4管理员&7] &4%player%'
  default: '&7[&8玩家&7] &7%player%'
tag-group-format:
  Admins:
    prefix: '&4管理员 &f'
    suffix: 
  default:
    prefix: '&7玩家 &f'
    suffix: 


优化

这个模块添加了简单的优化系统来优化你的服务器性能和提升TPS.

当前特性: 实体限制 - 限制每个区块的实体数.

Settings.yml

entity-chink-limit:
  # 是否启用区域限制.
  enabled: true
  # 是否自动检测区块
  inspection-enabled: true
  # 检测间隔.
  inspection-frequency: 300
  # 每个区块的实体限制.
  limits:
    ANIMAL: 50
    MONSTER: 50
    NPC: 20
    AMBIENT: 10
    WATER: 20
    OTHER: 50

聊天

这个模块可以让你管理聊天消息.

玩家聊天消息不支持JSON!

特性:

  • 防大写 - 防止全大写英文消息.
  • 防刷屏 - 防止消息和指令刷屏.
  • 加入和退出服务器的消息 - 根据分组显示不同的加入和退出服务器的消息.
  • 死亡消息 - 更改玩家死亡消息.
  • 物品展示 - 在聊天框内展示你的物品.
  • 全服和本地聊天 - 可配置聊天范围.
  • 管理员聊天 - 管理员聊天频道.
  • 支持PlaceholderAPI.
  • 聊天规则和惩罚 - 使用正则表达式检测聊天内容并进行惩罚!
  • 自动公告 - 每隔一段时间发送公告. 支持 JSON.

Settings.yml

anti-caps:
  # 是否启用防大写功能(对中文无效,译者已关闭该功能)
  enabled: false
  # 启用该功能的指令.
  in-commands:
  - me
  - broadcast
  - tell
  # 检测的最短消息长度
  min-length: 3
  # 多少百分比的大小字母会被改成小写.
  percentage: 70
  # 单词白名单
  whitelist:
  - OMG
  - LOL
  - WTF
  - WOW
  - ROFL

anti-spam:
  # 聊天冷却.
  chat-delay: 3
  # 指令冷却.
  cmd-delay: 3
  # 检测的消息/指令相似度.
  percentage: 90
  # 指令白名单.
  whitelist:
  - 'tell'
  - 'spawn'
  - 'home'
  - 'sethome'
  - 'reply'
  - 'stats'
  - 'kit'
  - 'warp'
  
join-and-quit:
  # 是否启用自定义进出游戏消息.
  enabled: true
  # 特定权限组的进出游戏消息.
  # 插件会自动检测权限组插件的分组.
  join-groups:
    Admins: '&7[&2+&7] &7管理员 &2%player% &7加入了游戏.'
  quit-groups:
    Admins: '&7[&4-&7] &7管理员 &4%player% &7离开了游戏.'

item-link:
  # 是否启用在聊天内展示物品.
  enabled: true
  # 替换物品的变量.
  keyword: '@hand'
  # 物品名格式.
  format: '&7<&f%item%&7>&f'

death-messages:
  # 是否启用自定义死亡信息.
  enabled: true
  # 指定死因的死亡消息列表.
  # 同一死因可添加多条消息.
  # 如果玩家死因不在列表内,则不会显示死亡信息.
  by-cause:
    LAVA:
    - '&7(&c☠&7) &c%player% &7尝试在岩浆里游泳.'
    BLOCK_EXPLOSION:
    - '&7(&c☠&7) &c%player% &7炸了!'
  # 同上,由实体造成的死亡.
  by-entity:
    PLAYER:
    - '&7(&c⚔&7) &c%damager% &7杀死了 &c%player%'
    ZOMBIE:
    - '&7(&c☠&7) &c%player%&7的脑子被僵尸吃了.'

chat:
  format:
    # 占位符:
    # {player_prefix} - 玩家组前缀.
    # {player_suffix} - 玩家组后缀.
    # {name} - 玩家名.
    # {display_name} - 自定义玩家名 (来自 /nick 的昵称等).
    # {message} - 玩家消息.
    # 可以在这使用PlaceholderAPI! 请使用 {} 而不是 %.
    local: '&3[本地] &7{player_prefix}{display_name}{player_suffix}&f: {message}'
    global: '&6[全服] &7{player_prefix}{display_name}{player_suffix}&f: {message}'
    spy: '&c侦查&7 | {world} {name}&7: {message}'
    admin: '&7[&b管理员聊天&7] &7{player_prefix}{display_name}{player_suffix}&f: {message}'
    # 聊天范围,设置为0.0关闭
    range: 100.0

# 聊天规则部分.
rules:
  # 规则名
  swear:
    dick:
      # 正则表达式.
      # 可使用这个网站测试正则表达式: http://myregexp.com/
      match: '((D|d)+([^a-zA-ZА-Яа-я]|\s)*(i|I|1|!)+([^a-zA-ZА-Яа-я]|\s)*(c|C)+([^a-zA-ZА-Яа-я]|\s)*(k|K)+([^a-zA-ZА-Яа-я]|\s)*)'
      # 检测行为.
      # 可用:
      # REPLACE - 替换脏话.
      # REPLACE_FULL - 替换整条消息/指令.
      # DENY - 取消消息/指令.
      action: REPLACE
      # 替换后的消息.
      replace-with: '***'
      # 无视规则的单词.
      # 可用于好话里的脏话.
      ignore-strings:
      - 'dickon'
    shit:
      match: '((s|S|$)+([^a-zA-ZА-Яа-я]|\s)*(h|H)+([^a-zA-ZА-Яа-я]|\s)*(i|I|1|!)+([^a-zA-ZА-Яа-я]|\s)*(T|t|7)+([^a-zA-ZА-Яа-я]|\s)*)'
      action: REPLACE_FULL
      replace-with: '这服真好玩!'
      ignore-strings: []
  adv:
    ips:
      match: '\b[0-9]{1,3}(\.|dot|\(dot\)|-|;|:|,|(\W|\d|_)*\s)+[0-9]{1,3}(\.|dot|\(dot\)|-|;|:|,|(\W|\d|_)*\s)+[0-9]{1,3}(\.|dot|\(dot\)|-|;|:|,|(\W|\d|_)*\s)+[0-9]{1,3}\b'
      action: DENY
      replace-with: '***'
      ignore-strings:
      - '127.0.0.1'
    domain:
      match: '[a-zA-Z0-9\-\.]+\s?(\.|dot|\(dot\)|-|;|:|,)\s?(com|org|net|cz|co|uk|sk|biz|mobi|xxx|eu|me|io|ru|su|tk|ua)\b'
      action: DENY
      replace-with: '***'
      ignore-strings:
      - 'yandex.ru'
      - 'google.com'
      - 'spigotmc.org'

# 惩罚措施
rules-punish:
  # 上面的规则名.
  swear:
    # 发送消息
    message: '&c聊天 &4║ &f你的消息被更改了,原因: &c粗鄙之语&f.'
    # 执行指令. 留空关闭.
    command: 'warn %player% 禁止粗鄙之语'
  adv:
    message: '&c聊天 &4║ &f你的消息被取消发送了,原因: &c打广告&f.'
    command: 

# 自动公告
announcer:
  # 间隔
  time: 180
  # 消息列表. 使用 /n 来换行.
  list:
  - '/n &6» &e查看插件百科:&6 {json: hint=&b点击前往!; url=http://mineplugin.org/SunLight-Core}[戳我]{end-json} /n '
  - '/n &6» &e支持 JSON 消息:&a {json: hint=&b你好, %player%!}[这是个按钮]{end-json} /n '

指令和权限

权限列表:

  • core.chat.color - 允许在聊天消息内使用颜色代码.
  • core.chat.spy - 允许查看本地聊天.
  • core.chat.admin - 允许查看和使用管理员聊天.
  • core.bypass.chat.delay.msg - 忽略聊天冷却.
  • core.bypass.chat.delay.cmd - 忽略指令冷却.
  • core.bypass.chat.caps - 忽略防大写检测.
  • core.bypass.chat.spam - 忽略复读检测.
  • core.bypass.chat.rules - 忽略聊天规则检测.
指令 缩写 描述 是否只能由玩家使用 权限
/adminchat - 切换管理员聊天模式 core.chat.admin

经济

这一模块需要安装Vault!

特点:

  • 支持离线玩家 - 设置/给予/拿走 离线玩家的金钱.

Settings.yml

# /baltop更新间隔
baltop-update: 15
currency:
  # 货币符号
  symbol: '$'
  # 新玩家拥有的钱
  start-balance: 100.0

指令和权限

指令 缩写 描述 是否只能由玩家使用 权限
/balance (player) /bal, /money, /cash 查看玩家有多少钱 core.eco.balance
/balancetop (page) /baltop, /moneytop 金钱排行榜 core.eco.balancetop
/pay [player] [amount] - 支付给玩家金钱 core.eco.pay
/eco give [player] [amount] /economy give 给予玩家金钱 core.eco + core.eco.give
/eco take [player] [amount] /economy take 拿走玩家的钱 core.eco + core.eco.take
/eco set [player] [amount] /economy give 设置玩家的金钱 core.eco + core.eco.set

补丁

这个模块修复了一些漏洞.

特点:

  • Fishing Farm - 防止挂机钓鱼.
  • Bed GUI - 防止在床上时打开菜单.
  • Ender Farm - 防止使用末影螨建造小黑塔.
  • IP Limit - 限制同一IP加入的玩家上限.
  • Creative Limiter - 防止玩家从创造模式中拿取物品.

Settings.yml

patcher:
  # 防钓鱼农场
  fishing: true
  # 防止在床上时打开菜单
  bed-gui: true
  #  防止使用末影螨建造小黑塔
  ender-farm: true
  # 限制同一IP加入的玩家上限.
  limit-ip: true
  # 防止玩家从创造模式中拿取物品.
  limit-creative: true

limit-creative:
  # 创造模式限制的物品.
  item-blacklist:
  - SPLASH_POTION
  - TNT
  - EXPERIENCE_BOTTLE
  - TRIDENT
  - LINGERING_POTION
  - ENDER_EYE
  - BEDROCK
  - END_PORTAL_FRAME
  - ITEM_FRAME
  - WITHER_SKELETON_SKULL
  # 创造模式指令黑名单
  cmd-blacklist:
  - 'auc'
  - 'ah'

权限列表

  • core.bypass.creative - 忽略创造限制.

菜单

这个模块可以让你创建自定义菜单.

特点:

  • 菜单指令 - 每个菜单可使用不同的指令打开.
  • 权限 - 每个菜单可需要不同的权限才能打开.
  • 显示条件 - 根据条件显示或隐藏指定的菜单物品.
  • 点击条件 - 满足条件才能点击物品.
  • 点击类型 - 5种不同的点击类型.
  • 点击行为 - 自定义的点击物品触发行为.
  • 支持PlaceholderAPI.

Settings.yml

暂无 :/ 请查看下面的菜单配置


菜单配置

在模块文件夹你可以找到 /gui/ 子文件夹. 所有菜单都在这个文件夹内.

想要创建新的菜单你只需复制已有菜单文件并进行修改即可. 新版:

旧版:

# 菜单标题
title: '&8[&2SunLight GUI&8]'
# 菜单尺寸. 可用数值: 9/18/27/36/45/54
size: 54
# 是否需要权限打开菜单?
# 权限为 core.gui.[id] ,[id] 为文件名.
need-permission: false
# 菜单指令缩写
aliases:
- 'menu'
- 'servermenu'
# 菜单物品
content:
  rank-item:
    # 物品显示设置.
    # 提醒: 显示顺序很重要! 位于下方的物品优先度更高.
    display:
      # default 为常时显示, 但你可以删除这个来使其在满足条件后显示.
      default:
        # 物品材料名. 
        # 格式: Material:Data:Amount
        material: 'COAL:0:1'
        # 物品名
        # 支持 PlaceholderAPI
        name: '&7[&8Coal&7]'
        # 物品描述
        # 支持 PlaceholderAPI
        lore:
        - '&7默认所有人都看得见的物品'
        - '&7玩家不需要满足条件就看得见.'
        # 头的皮肤.
        # 你可以使用 %player% 代表使用者.
        skull:
          hash: ''
          owner: ''
        # 附魔光效
        enchanted: true
        # 隐藏物品的所有属性.
        hide-flags: true
        # 设置药水的药水效果.
        potion-effect: 'JUMP'
        # 设置皮革装备的RGB颜色.
        leather-color: '255,255,255'
        # 设置显示物品的条件.
        # 条件列表.
        conditions:
        - '[PERMISSION] core.gui.user'
      vip:
        material: 'GOLD_INGOT:0:1'
        name: '&7[&eGold&7]'
        lore:
        - '&7这件物品只有拥有ecore.gui.vip权限的玩家看得到'
        skull:
          hash: ''
          owner: ''
        enchanted: true
        hide-flags: true
        potion-effect: 'JUMP'
        leather-color: '255,255,255'
        conditions:
        - '[PERMISSION] core.gui.vip'
      emerald:
        material: 'EMERALD:0:1'
        name: '&7[&aEmerald&7]'
        lore:
        - '&7这件物品只一拥有&acore.gui.emerald权限的玩家看得到'
        - '&7'
        - '&7越往下的物品优先度越高,'
        - '&7拥有 &acore.gui.vip &7和 &acore.gui.emerald权限的玩家'
        - '&7只看得到绿宝石.'
        skull:
          hash: ''
          owner: ''
        enchanted: true
        hide-flags: true
        potion-effect: 'JUMP'
        leather-color: '255,255,255'
        conditions:
        - '[PERMISSION] core.gui.emerald'
    # 物品格子序数.
    # 可用逗号分隔多个位置.
    slots: '20,22,24'
    # 物品点击行为.
    clicks:
      # 点击类型.
      # 可用类型:
      # - LEFT
      # - RIGHT
      # - MIDDLE
      # - SHIFT_LEFT
      # - SHIFT_RIGHT
      LEFT:
        # 点击条件.
        # 条件列表.
        conditions: []
        # 点击触发行为.
        # 行为列表.
        actions:
        - '[MESSAGE] &请左击!'
        # 发送给不满足条件的玩家的消息.
        # 留空则不显示.
        fail-message: '你必须满足条件!'
      RIGHT:
        conditions: []
        actions:
        - '[MESSAGE] &e请右击!'
        fail-message: '你必须满足条件!'
      MIDDLE:
        conditions: []
        actions:
        - '[MESSAGE] &e请使用鼠标中键!'
        fail-message: '你必须满足条件!'
      SHIFT_LEFT:
        conditions: []
        actions:
        - '[MESSAGE] &e请Shift+左击!'
        fail-message: '你必须满足条件!'
      SHIFT_RIGHT:
        conditions: []
        actions:
        - '[MESSAGE] &e请Shift+右击!'
        fail-message: '你必须满足条件!'

译者服务器菜单示例:

title: '&8[&b&k|&r&b&l云阁&b&k|&r&8]'
size: 54
need-permission: false
aliases:
- 'menu'
content:
  filler-panel:
    display:
      default:
        material: 'BLACK_STAINED_GLASS_PANE:1'
        name: '&r'
        conditions: []
    slots: '0,1,2,3,4,5,6,7,8,45,46,47,48,49,50,51,52,53,17,26,35,44,9,18,27,36'
  rules:
    display:
      default:
        material: 'BOOK:1'
        name: '&6&l规则'
        lore:
        - '&7点击查看服务器规则.'
        skull:
          hash: 
          owner: 
        enchanted: true
        hide-flags: true
        potion-effect: 'JUMP'
        leather-color: '255,255,255'
        conditions: []
    slots: '22'
    clicks:
      LEFT:
        conditions: []
        actions:
        - '[PLAYER_COMMAND] rules'
        - '[CLOSE]'
        fail-message: 
  music:
    display:
      default:
        material: 'NOTE_BLOCK:0'
        name: '&7[&8红石音乐&7]'
        lore:
        - '&c&l点击打开红石音乐菜单播放音乐'
        skull:
          hash: 
          owner: 
        enchanted: false
        hide-flags: true
        potion-effect: 'JUMP'
        leather-color: '255,255,255'
        conditions: []
    slots: '20'
    clicks:
      LEFT:
        conditions: []
        actions:
        - '[PLAYER_COMMAND] music'  
        fail-message: 
  pet:
    display:
      default:
        material: 'BONE:0'
        name: '&7[&2宠物&7]'
        lore:
        - '&a使用特制的缰绳可以捕捉宠物'
        - '&a你可以从服务器商店购买特制缰绳'
        - '&a点击打开宠物之家(或输入指令/pet collection)'
        - '&2右击宠物可打开宠物菜单(或输入指令/pet menu)'
        enchanted: true
        hide-flags: true
        potion-effect: 'JUMP'
        leather-color: '255,255,255'
    clicks:
      LEFT:
        conditions: []
        actions:
        - '[PLAYER_COMMAND] pet collection'   
        fail-message:         
    slots: '30' 
  particle:
    display:
      default:
        material: 'BLAZE_POWDER:0'
        name: '&6[&2粒&a子&c特&d效&6]'
        lore:
        - '&6点击打开&2粒&a子&c特&d效&6菜单(或输入指令/pp)'
        enchanted: true
        hide-flags: true
        potion-effect: 'JUMP'
        leather-color: '255,255,255'
    clicks:
      LEFT:
        conditions: []
        actions:
        - '[PLAYER_COMMAND] pp'   
        fail-message:         
    slots: '28'     
  quest:
    display:
      default:
        material: 'PAPER:0'
        name: '&7[&2任务&7]'
        lore:
        - '&a点击打开任务菜单'
        enchanted: false
        hide-flags: true
        potion-effect: 'JUMP'
        leather-color: '255,255,255'
        conditions: []
    clicks:
      LEFT:
        conditions: []
        actions:
        - '[PLAYER_COMMAND] quest'      
        fail-message:             
    slots: '32'   
  em:
    display:
      default:
        material: 'IRON_SWORD:0'
        name: '&7[&2精英怪物&7]'
        lore:
        - '&a点击打开精英怪物菜单'
        enchanted: false
        hide-flags: true
        potion-effect: 'JUMP'
        leather-color: '255,255,255'
        conditions: []
    clicks:
      LEFT:
        conditions: []
        actions:
        - '[OPEN_GUI] em'      
        fail-message:             
    slots: '24'
  mt:
    display:
      default:
        material: 'IRON_PICKAXE:0'
        name: '&7[&2多功能工具&7]'
        lore:
        - '&a点击打开合成多功能工具'
        - '&a将不同类型的工具放入对应格子内,点击羽毛获得多功能工具'
        - '&a或输入指令/mt open打开'
        enchanted: true
        hide-flags: true
        potion-effect: 'JUMP'
        leather-color: '255,255,255'
        conditions: []
    clicks:
      LEFT:
        conditions: []
        actions:
        - '[PLAYER_COMMAND] mt open'      
        fail-message:             
    slots: '10'
  dr:
    display:
      default:
        material: 'GOLD_INGOT:0'
        name: '&7[&6每日奖励&7]'
        lore:
        - '&6点击领取每日奖励'
        enchanted: true
        hide-flags: true
        potion-effect: 'JUMP'
        leather-color: '255,255,255'
        conditions: []
    clicks:
      LEFT:
        conditions: []
        actions:
        - '[PLAYER_COMMAND] dailyrewards'      
        fail-message:             
    slots: '12'
  tp:
    display:
      default:
        material: 'ENDER_PEARL:0'
        name: '&7[&6随机传送&7]'
        lore:
        - '&6点击使用随机传送'
        - '&d或输入/rtp使用随机传送'
        enchanted: false
        hide-flags: true
        potion-effect: 'JUMP'
        leather-color: '255,255,255'
        conditions: []
    clicks:
      LEFT:
        conditions: []
        actions:
        - '[PLAYER_COMMAND] rtp'      
        fail-message:             
    slots: '14'
  game:
    display:
      default:
        material: 'SLIME_BALL:0'
        name: '&7[&2街机游戏&7]'
        lore:
        - '&6点击打开街机游戏并加载资源包'
        - '&d或输入/ab play'
        enchanted: false
        hide-flags: true
        potion-effect: 'JUMP'
        leather-color: '255,255,255'
        conditions: []
    clicks:
      LEFT:
        conditions: []
        actions:
        - '[PLAYER_COMMAND] ab play'      
        fail-message:             
    slots: '16'    
  cv:
    display:
      default:
        material: 'GRASS_BLOCK:0'
        name: '&7[&6城镇文明&7]'
        lore:
        - '&6点击打开城镇文明菜单'
        - '&d也可使用向导书或输入/cv打开'
        enchanted: false
        hide-flags: true
        potion-effect: 'JUMP'
        leather-color: '255,255,255'
        conditions: []
    clicks:
      LEFT:
        conditions: []
        actions:
        - '[PLAYER_COMMAND] cv'      
        fail-message:             
    slots: '34' 
  sd:
    display:
      default:
        material: 'OAK_LOG:0'
        name: '&7[&6官方商店&7]'
        lore:
        - '&6左击建材商店'
        - '&f右击打开羊毛商店'
        - '&5鼠标中键打开主商店页面'
        enchanted: false
        hide-flags: true
        potion-effect: 'JUMP'
        leather-color: '255,255,255'
        conditions: []
    clicks:
      LEFT:
        conditions: []
        actions:
        - '[PLAYER_COMMAND] shop open blocks'      
        fail-message:  
      RIGHT:
        conditions: []
        actions:
        - '[PLAYER_COMMAND] shop open wool'      
        fail-message:     
      MIDDLE:
        conditions: []
        actions:
        - '[PLAYER_COMMAND] shop open'      
        fail-message:          
    slots: '38'        
  fur:
    display:
      default:
        material: 'FURNACE:0'
        name: '&7[&2家具&7]'
        lore:
        - '&6输入指令'
        - '&5/furniture recipe [家具名]  可查看家具合成配方'
        - '&5使用TAB补全家具名'
        enchanted: false
        hide-flags: true
        potion-effect: 'JUMP'
        leather-color: '255,255,255'
        conditions: [] 
    clicks:
      LEFT:
        conditions: []
        actions:
        - '[PLAYER_COMMAND] furniture recipe Table'      
        fail-message:          
    slots: '40'          

指令和权限

权限列表:

  • core.gui.[id] - 允许打开指定[id] 的菜单.
指令 缩写 描述 是否只能由玩家使用 权限
/gui [id]

/gui [id] [player]

- 忽略权限强制玩家打开指定菜单.

core.cmd.gui

core.cmd.gui.others

这个模块可以让玩家设置家和传送回家.

特点:

  • 不同权限不同家上限 - 不同权限组的玩家的家上限不同.
  • 世界黑名单 -防止玩家在特定的世界设置家.
  • 在家里重生 - 玩家死亡后可以在家里重生.

Settings.yml

# 是否在设置的家重生.
respawn-at-home: true
# 玩家无法设置家的世界.
world-blacklist:
- events
- spawn
# 不同权限组可拥有的家上限.
# 插件自动检测权限组插件.
homes-by-rank:
  VIP: 2
  Gold: 3

指令和权限

指令 缩写 描述 是否只能由玩家使用 权限
/home (home)/home (player) (home) - 传送玩家回家 core.cmd.home

core.cmd.home.others

/homes/homes (player) - 列出玩家的家

core.cmd.homes

core.cmd.homes.others

/sethome (home) - 设置家 core.cmd.sethome
/delhome (home)/delhome (player) (home) - 拆家 core.cmd.delhome

core.cmd.delhome.others

礼包

这个模块提供了简易的礼包功能.

特点:

  • 礼包菜单 - 用菜单来查看和获取礼包.
  • 礼包JSON列表 - 可在聊天框内点击领取礼包.
  • 自定义物品 - 支持任何自定义物品.
  • 菜单编辑器 - 通过菜单编辑器创建和管理礼包.
  • 礼包预览菜单 - 通过菜单预览礼包内容.
  • 礼包权限 - 设置获取礼包所需权限.
  • 礼包指令 - 设置获取礼包时执行的指令.
  • 礼包价格 - 设置获取礼包所需费用.
  • 礼包冷却 - 设置礼包冷却.

Settings.yml

general:
  # 是否使用礼包菜单.
  # 设置为 false 则只在聊天框内显示.
  use-gui: false
  # 礼包图标描述.
  # 占位符:
  # - %cost% - 礼包费用
  # - %access% - 显示是否可以领取该礼包
  # - %cd% - 显示礼包冷却.
  # - %cd_left% - 显示剩余冷却时间.
  # - %lore% - 礼包图标描述.
  kit-lore:
  - '&8&m                              '
  - '&7» &f价格: &a%cost%'
  - '&7» &f是否可领取: &f%access%'
  - '&7» &f冷却时间: &6%cd%'
  - '&7» &f剩余冷却时间: &c%cd_left%'
  - '&8&m                              '
  - '%lore%'
gui:
  # 选择礼包菜单
  # 菜单格式请看这里
  select:
    title: '&l礼包'
    size: 54
    pages: 1
    # 你的自定义物品
    content:
      filler:
        material: 'BLACK_STAINED_GLASS_PANE'
        name: ''
        lore: []
        slots: 45,46,47,48,49,50,51,52,53
  # 礼包预览菜单
  preview:
    title: '&l预览礼包'
    size: 54
    # 显示礼包物品的格子.
    item-slots: 45,2,3,4,5,6,7,8,11,12,13,14,15,16,17,20,21,22,23,24,25,26,29,30,31,32,33,34,35,38,39,40,41,42,43,44
    # 关闭礼包装备的格子.
    armor-slots:
      HELMET: 0
      CHESTPLATE: 9
      LEGGINGS: 18
      BOOTS: 27
      OFF_HAND: 36
    # 你的自定义物品.
    content:
      filler:
        material: 'BLACK_STAINED_GLASS_PANE'
        name: ''
        lore: []
        slots: 1,10,19,28,37,46,47,48,49,50,51,52,53

指令和权限

权限列表:

  • core.kit.[id] - 允许使用指定id的礼包,id为玩家名.
  • core.bypass.kit - 忽略礼包价格和冷却.
指令 缩写 描述 是否只能由玩家使用 权限
/kit /kits 显示礼包列表. core.cmd.kit
/kit [kit]

/kit [kit] [player]

/kits 领取或给予玩家礼包

core.cmd.kit

core.cmd.kit.others

/kit editor /kits 打开礼包编辑器菜单. core.cmd.kit.editor
/kit preview [kit] /kits 打开礼包预览菜单. core.cmd.kit


地标

这个模块为你的服务器提供了简易的地标系统.

特点:

  • 地标菜单 - 使用菜单查看地标.
  • 地标JSON列表 - 可交互的聊天信息.
  • 地标欢迎消息 - 发送消息给传送到地标的玩家.
  • 菜单编辑器 - 使用菜单编辑器创建和管理地标.
  • 分级地标 - 设置不同权限组的玩家可使用的地标数.
  • 地标权限 - 设置传送地标所需权限.
  • 地标价格 - 设置传送所需费用.

Settings.yml

general:
  # 是否使用地标菜单.
  # 设置为false则只在聊天框内显示.
  use-gui: false
  # 地标图标描述.
  # 占位符:
  # - %cost% - 传送价格
  # - %access% - 是否可传送到该地标
  # - %owner% - 地标所有者.
  # - %id% - 内部地标名.
  # - %lore% - 地标图标描述.
  warp-lore:
  - '&8&m                        '
  - '&f» &7价格: &a%cost%'
  - '&f» &7是否可用: &f%access%'
  - '&f» &7拥有者: &6%owner%'
  - '&f» &7ID: &6%id%'
  - '&8&m                        '
  - '%lore%'
  # 不同等级的玩家可设置的地标数.
  # 插件自动检测玩家所在权限组.
  warps-by-rank:
    VIP: 2
    Gold: 3
gui:
  # 地标列表菜单
  # 菜单格式请看这里
  title: '&l地标'
  size: 54
  pages: 1
  custom-content:
    filler:
      material: BLACK_STAINED_GLASS_PANE
      name: ''
      lore: []
      slots: 45,46,47,48,49,50,51,52,53
commands:
  setdesc:
    #  /setwarpdesc 指令的每行最大长度和行数
    line-length: 50
    max-lines: 5

指令和权限

权限列表:

  • core.warp.[id] - 允许传送到指定地标. [id] 为文件名.
  • core.bypass.warp.cost - 忽略传送费用.
指令 缩写 描述 是否只能由玩家使用 权限
/warp /warps 显示服务器的地标. core.cmd.warp
/warp [warp]/warp [warp] [player] /warps 传送到地标.

core.cmd.warp

core.cmd.warp.others

/warp editor /warps 打开地标编辑器. core.cmd.warp.editor
/setwarp [warp] - 在你所在位置创建地标. core.cmd.setwarp
/delwarp [warp] - 删除指定地标. core.cmd.delwarp

core.cmd.delwarp.others

/setwarpdesc [warp] [text] - 设置地标描述. [text] 可使用 /n 分成多行. core.cmd.setwarpdesc

core.cmd.setwarpdesc.others

/setwarpicon [warp] [material] - 更改地标图标. core.cmd.setwarpicon

core.cmd.setwarpicon.others

/setwarpname [warp] [name] - 更改地标名.(不是id) core.cmd.setwarpname

core.cmd.setwarpname.others

/setwarpwelcome [warp] [text] - 设置地标欢迎消息.[text] 可使用 /n 分成多行. core.cmd.setwarpwelcome

core.cmd.setwarpwelcome.others

欢迎消息

这个模块提供了欢迎玩家的功能.

特点:

  • 欢迎萌新 - 在新玩家进入服务器时发送广播.
  • 加入行为 - 自定义玩家加入服务器时触发的行为.
  • 动态标题 - 在玩家加入时显示动态标题.
  • PlaceholderAPI - 支持 PlaceholderAPI.

Settings.yml

# 萌新加入服务器时显示的消息.
# 留空关闭.
newbie-broadcast: '&e欢迎&6%player%&e来到我们的服务器!'

# 欢迎萌新
newbies:
  # 自定义行为.
  join-actions:
  - '[PLAYER_COMMAND] motd'
  - '[FIREWORK]'
  animated-titles:
    # 是否启用标题.
    enabled: true
    # 动态间隔. 20 = 1 秒.
    interval: 2
    # 框架
    # 支持在这使用PlaceholderAPI!
    title:
    - '&6«»'
    - '&6« »'
    - '&6« &e&lH &6»'
    - '&6« &e&lHe &6»'
    - '&6« &e&lHel &6»'
    - '&6« &e&lHell &6»'
    - '&6« &e&lHello &6»'
    - '&6« &e&lHello! &6»'
    # 子标题框架.
    subtitle: []

# 欢迎已注册的玩家.
users:
  # 自定义行为.
  join-actions:
  - '[PLAYER_COMMAND] motd'
  - '[FIREWORK]'
  animated-titles:
    enabled: true
    interval: 2
    title:
    - '&6«»'
    - '&6« »'
    - '&6« &e&lH &6»'
    - '&6« &e&lHe &6»'
    - '&6« &e&lHel &6»'
    - '&6« &e&lHell &6»'
    - '&6« &e&lHello &6»'
    - '&6« &e&lHello! &6»'
    subtitle: []

多世界管理

这个模块为你的服务器添加了简易的多世界系统.

特点:

  • 加载/卸载 - 使用指令加载或卸载自定义世界.
  • 创建/删除 - 使用指令创建或删除自定义世界.
  • 传送 - 使用指令传送到其他世界.

生成器:

  • NORMAL - 默认原版地形生成器.
  • EMPTY - 虚空世界生成器.
  • [PLUGIN] - 插件生成器.

Settings.yml

暂无 :/


指令和权限

指令 缩写 描述 是否只能由玩家使用 权限
/worlds - 世界列表 core.cmd.worlds
/goto [world] - 传送到指定的世界 core.cmd.goto
/move [player] [world] - 传送玩家到指定的世界 core.cmd.move
/createworld [name] (ENV) (GEN) (TYPE) (DIFF) (SEED) (STRUCTURES) - 创建自定义设置的世界 core.cmd.createworld
/deleteworld [world] - 删除指定的自定义世界 core.cmd.deleteworld
/loadworld [world] - 加载指定的自定义世界 core.cmd.loadworld
/unloadworld [world] - 卸载指定的自定义世界 core.cmd.unloadworld

配置


自定义文本

在插件文件夹内你可以找到 /custom_text/ 文件夹,你可以在这个文件夹内创建自定义文本.

所有文件必须使用.txt格式.文件名就是指令名.

当你输入这个指令你就可以看到文件内的文本消息.

  1. 中文乱码请使用ANSL编码编写中文内容

示例: 对于默认的 rules.txt 文件, 你可以在游戏内输入 /rules指令查看服务器规则.

每个文本文件的权限为 core.cmd.ctext.(file). 比如: core.cmd.ctext.rules - 为 rules.txt 的权限

数据

数据库存储设置.

data:
  # 自动保存间隔.单位为分钟.
  auto-save: 15
  storage:
    # 存储类型. SQLite 或 MySQL
    type: sqlite
    #以下设置仅限MySQL.
    username: none
    password: none
    host: none
    database: none
  purge:
    # 是否清除数据库老旧数据.
    enabled: false
    # 多久前的数据会被清除.
    days: 60

全局

全局设置.

已更新为2.0.0版本的配置

core:
  #指令缩写
  command-aliases: sunlight,core
  #使用的语言
  lang: cn
data:
  #自动保存的时间间隔
  auto-save: 15
  storage:
    数据库类型
    type: sqlite
    username: none
    password: none
    host: none
    database: none
  purge:
    自动清除旧数据
    enabled: false
    days: 60
general:
  disable-rain: false
  #Essentials数据转移开关
  essentials-convert: false
commands:
  #禁用指令
  disabled: []
  #传送有效时间(单位为秒)
  tpa-time: 30
  #/near 指令显示玩家的范围
  near-radius: 100
  #指令冷却时间(单位为秒)你可以在这里为任何插件的指令设置冷却
  cooldowns:
    rtp: 60
  # 你可以在这里自定义时间指令
  # 默认的时间指令有 /day 和 /night 
  # 数值 = 世界时间刻数.
  # 权限: core.cmd.time.[指令缩写]。比如: core.cmd.time.day
  time:
    day: 0
    night: 13000
  #昵称最小和最大长度
  nick:
    max-lenght: 20
    min-lenght: 3
    #禁止使用的昵称
    black-list:
    - Admin
 #私聊音效
 #设置为NONE关闭
  sms:
    sounds:
      send: UI_BUTTON_CLICK
      get: BLOCK_NOTE_BLOCK_BELL
  list:
    rank-format:
      Admins: '%color%» &7管理员: %color%%players%'
      Users: '%color%» &7玩家: %color%%players%'
    rank-color:
      Admins: '&4'
      Users: '&f'
    format:
    - '&6&m              &6&l[&e&l 玩家列表 &6&l]&m              '
    - '%Admins%'
    - '%Users%'
    - 
    - '&6共有&e%total%&6名玩家在线.'
    - '&6&m                                                     '
control:
  #允许飞行的世界
  fly:
    enabled: true
    worlds:
    - events
  #禁止使用特定游戏模式的世界
  gamemode:
    enabled: true
    disallow:
    - SPECTATOR
  spawning:
    enabled: false
    worlds:
      some_world:
        NATURAL: false
  #使用上帝模式的世界
  god-mode:
    worlds:
    - events
#模块开关
modules:
  #AFK模块
  AFK: true
  #封禁模块
  BANS: true
  #聊天模块
  CHAT: true
  #椅子模块
  CHAIRS: true
  #漏洞修复模块
  EXPLOITS: true
  #菜单模块
  GUI: true
  #经济模块
  ECONOMY: true
  #随机传送模块
  RTP: true
  #家模块
  HOMES: true
  #礼包模块
  KITS: true
  #地标模块
  WARPS: true
  #优化模块
  ANTI_LAGG: true
  #TAB模块
  TAB: true
  #多世界管理模块
  WORLDS: true
  #计分板模块
  SCOREBOARD: true
  #传送点模块
  SPAWN: true
  #欢迎消息模块
  WELCOME: true

指令

插件指令额外设置.

commands:
  # 禁用的插件指令. 可使用指令缩写.
  # 
  disabled: []
  # 传送请求过期时间.
  tpa-time: 30
  # /near 指令的搜索范围.
  near-radius: 100
  # 指令冷却. 支持其他插件的指令及其缩写.
  #
  cooldowns:
    rtp: 60
  # 设置 /time 指令的缩写.
  # 默认添加了两个指令: /day 和 /night
  # 时间必须是游戏刻数.
  time:
    day: 0
    night: 13000
  # /nick 指令.
  nick:
    max-lenght: 20
    min-lenght: 3
    black-list:
    - Admin
  # /tell 指令音效.
  sms:
    sounds:
      send: UI_BUTTON_CLICK
      get: BLOCK_NOTE_BLOCK_BELL
  # 设置 /list 指令格式.
  # 插件自动检测玩家权限组.
  list:
    rank-format:
      Admins: '%color%›› &f管理员: %players%'
      Users: '%color%›› &f玩家: %players%'
    rank-color:
      Admins: '&4'
      Users: '&7'
    format:
    - '&8&m----------------&e&l 玩家列表 &8&m----------------'
    - '%Admins%'
    - '%Users%'
    - '&6共有&e%total%名&6玩家在线.'

控制

control:
  fly:
    # 是否启用控制.
    enabled: true
    # 关闭飞行的世界列表.
    worlds:
    - events
  gamemode:
    # 是否启用游戏模式控制.
    enabled: true
    # 禁止使用的游戏模式.
    disallow:
    - SPECTATOR
  spawning:
    # 是否启用生成控制.
    enabled: false
    # 不会生成怪物的世界列表.
    worlds:
      some_world:
        NATURAL: false # 在此世界关闭自然生成生物.
  god-mode:
    worlds:
    - events

指令和权限

新版

指令 缩写/别名 描述 仅限玩家 权限
/air [数量]

/air [数量] (玩家名)

- 更改玩家的氧气值

sunlight.cmd.air

sunlight.cmd.air.others

/anvil (玩家名) - 打开铁砧

sunlight.cmd.anvil

sunlight.cmd.anvil.others

/armor [玩家名] - 查看并管理玩家的盔甲 sunlight.cmd.armor
/back (玩家名) - 传送到上一个位置

sunlight.cmd.back

sunlight.cmd.back.others sunlight.cmd.back.bypass.worlds

/broadcast [文本] /bc 广播消息 sunlight.cmd.broadcast
/burn [玩家名] [时间] /ignite 点燃玩家 sunlight.cmd.burn
/clearchat /cchat 清空聊天框 sunlight.cmd.clearchat
/clearinventory (玩家名) /clearinv, /clear, /ci 清空玩家背包

sunlight.cmd.clearinventory

sunlight.cmd.clearinventory.others

/condense - 将粒/锭等物品转换为锭/块。 sunlight.cmd.condense
/disposal - 打开垃圾桶 sunlight.cmd.disposal
/enchant [魔咒] [等级] /ench 给手中物品附魔或祛魔 sunlight.cmd.enchant
/enchanting - 打开附魔台 sunlight.cmd.enchanting
/enderchest (玩家名) /echest, /ec 打开玩家的末影箱 sunlight.cmd.enderchest

sunlight.cmd.enderchest.others

/exp [set/give] [数量]

/exp [set/give] [玩家名] [数量]

/xp 更改玩家的经验值

sunlight.cmd.exp

sunlight.cmd.exp.others

/extinguish (玩家名) /ext 灭掉玩家身上的火

sunlight.cmd.ext

sunlight.cmd.ext.others

/feed (玩家名) - 加满玩家饥饿度

sunlight.cmd.feed

sunlight.cmd.feed.others

/fly (玩家名)

/fly [0/1] (玩家名)

- 切换飞行模式

sunlight.cmd.fly

sunlight.cmd.fly.others sunlight.cmd.fly.bypass.worlds

/gm [0/1/2/3] (玩家名)

/gms (玩家名) /gmc (玩家名) /gma (玩家名) /gmsp (玩家名)

/gamemode 更改玩家的游戏模式

sunlight.cmd.gamemode

sunlight.cmd.gamemode.survival sunlight.cmd.gamemode.creative sunlight.cmd.gamemode.adventure sunlight.cmd.gamemode.spectator sunlight.cmd.gamemode.others

/give [玩家名] [材料名] (数量) - 给与玩家物品

sunlight.cmd.give
/god (玩家名)

/god [0/1] (玩家名)

- 切换玩家的上帝模式 sunlight.cmd.god

sunlight.cmd.god.others sunlight.cmd.god.bypass.worlds

/hat - 将手中物品戴到头上 sunlight.cmd.hat
/heal (玩家名) - 置于玩家

sunlight.cmd.heal

sunlight.cmd.heal.others

/ignore [玩家名] - 屏蔽特定玩家 sunlight.cmd.ignore

sunlight.cmd.ignore.bypass

/invsee [玩家名] /inv 查看并管理玩家背包 sunlight.cmd.inv

sunlight.cmd.inv.others

/item [材料名] (数量) - 获得特定物品 sunlight.cmd.item
/itemname [name] /rename 重命名手中物品 sunlight.cmd.itemname
/itemlore [add|del|clear] /relore 修改物品lore sunlight.cmd.itemlore
/list /online, /players 显示玩家列表 sunlight.cmd.list
/me [action] - 在聊天框内使用action sunlight.cmd.me
/mobkill [type] /killmob 杀死特定类型的生物 sunlight.cmd.mobkill
/more - 让手中物品变为1组 sunlight.cmd.more
/near /nearby 显示最近的玩家 sunlight.cmd.near
/nick (nick)

/nick [玩家名] (nick)

/name, /nickname 更改或重置玩家昵称

sunlight.cmd.nick

sunlight.cmd.nick.others sunlight.cmd.nick.bypass.words sunlight.cmd.nick.bypass.length

/nophantom (玩家名) /antiphantom 不在玩家附近生成幻翼

sunlight.cmd.nophantom

sunlight.cmd.nophantom.others

/playerinfo [玩家名] /pinfo 显示玩家信息 支持PlaceholderAPI. sunlight.cmd.playerinfo
/potion [effect] [amplifier] [duration] - 创建或修改药水 sunlight.cmd.potion
/repair (all) /fix 修复手中或背包内全部物品 sunlight.cmd.repair
/reply [文本] /r 回复私聊 sunlight.cmd.reply
/seen [玩家名] - 查看玩家最后在线时间 sunlight.cmd.seen
/skull [玩家名] /head 获得特定玩家的头颅 sunlight.cmd.skull
/sms [玩家名] [文本] /tell, /t, /m, /msg, /message, /w, /whisper, /pm 发送私聊消息 sunlight.cmd.tell
/socialspy (玩家名)

/socialspy [0/1] (玩家名)

- 开启或关闭监控玩家私聊

sunlight.cmd.socialspy

sunlight.cmd.socialspy.others

/spawner [type] - 更改刷怪笼类型 sunlight.cmd.spawner

sunlight.cmd.spawner.[type]

/spawnmob [type] [数量] /mob 召唤生物 sunlight.cmd.spawnmob

sunlight.cmd.spawnmob.[type]

/speed (数量) (玩家名) - 更改玩家速度

sunlight.cmd.speed

sunlight.cmd.speed.others

/sudo [玩家名] [command]

/sudo [玩家名] c:[文本]

- 强制玩家执行指令和发送文本

sunlight.cmd.sudo
/suicide /killme, /killmeplease 自杀 sunlight.cmd.suicide
/summon [玩家名] /s 传送玩家到你身边 sunlight.cmd.summon
/system /tps, /gc, /mem 服务器系统信息 sunlight.cmd.system
/time (world) (ticks) - 显示当前世界时间 sunlight.cmd.time

sunlight.cmd.time.set

/thunder (玩家名) /smite 召唤雷电

sunlight.cmd.thunder

sunlight.cmd.thunder.others

/top (玩家名) /up 传送到所在处最高方块

sunlight.cmd.top

sunlight.cmd.top.others

/tpaccept (玩家名) - 接受传送请求 sunlight.cmd.tpaccept
/tpa [玩家名] /call 发送传送请求 sunlight.cmd.tpa
/tpahere [玩家名] - 请求玩家传送到你身边 sunlight.cmd.tpahere
/tp [玩家名]

/tp [传送玩家名] [目标玩家]

- 传送到玩家身边或传送特定玩家

sunlight.cmd.tp

sunlight.cmd.tp.others

/tpdeny (玩家名) - 拒绝传送请求

sunlight.cmd.tpdeny

sunlight.cmd.tpdeny.others

/tppos [x] [y] [z] (玩家名) - 传送到特定坐标

sunlight.cmd.tppos

sunlight.cmd.tppos.others

/tptoggle (0/1) (玩家名) - 开启或关闭传送请求

sunlight.cmd.tptoggle

sunlight.cmd.tptoggle.others

/unignore [玩家名] - 取消屏蔽玩家

sunlight.cmd.unignore
/vanish (玩家名) /v 切换隐身模式

sunlight.cmd.vanish

sunlight.cmd.vanish.others

/weather [sun/storm/thunder] (world) - 更改世界天气 sunlight.cmd.weather
/workbench /wb 打开控制台 sunlight.cmd.workbench

旧版

所有权限:

  • core.bypass.afk.kick - 挂机不会被自动踢出服务器.
  • core.bypass.nick - 跳过 /nick 昵称限制.
  • core.bypass.gm - 忽略游戏模式控制.
  • core.bypass.fly - 忽略飞行控制.
  • core.bypass.kit - 忽略礼包冷却和花费.
  • core.bypass.creative - 忽略创造限制.
  • core.bypass.warp.cost - 忽略传送费用.
  • core.bypass.chat.delay.msg - 忽略聊天冷却.
  • core.bypass.chat.delay.cmd - 忽略指令冷却.
  • core.bypass.chat.caps - 忽略聊天防大写.
  • core.bypass.chat.spam - 忽略聊天内容相似度检测.
  • core.bypass.chat.rules - 忽略聊天规则检测.
  • core.bypass.vanish.see - 可以看到隐身的玩家.
  • core.bypass.command.cooldown - 忽略所有指令的冷却.
  • core.admin - 管理员权限.
  • core.save.level - 死亡保留经验值.
  • core.save.items - 死亡保留物品.

仅限玩家意味着只能通过玩家在游戏内执行.

[] - 为必须, () - 为可选.

指令 缩写 描述 仅限玩家 权限
/air [数量]

/air [数量] (玩家名)

- 恢复氧气.

core.cmd.air

core.cmd.air.others

/anvil

/anvil (玩家名)

- 打开铁砧.

core.cmd.anvil

core.cmd.anvil.others

/armor [玩家名] - 查看和更换玩家的装备. core.cmd.armor
/back

/back [玩家名]

- 传送回上一个地方.

core.cmd.back

core.cmd.back.others

/broadcast [文本] /bc 广播消息. core.cmd.broadcast
/burn [玩家名] [持续时间] /ignite 点燃玩家. core.cmd.burn
/clearchat /cchat 清空聊天框. core.cmd.clearchat
/clearinventory

/clearinventory (玩家名)

/clearinv, /clear, /ci 清空玩家背包(包括装备)

core.cmd.clearinventory

core.cmd.clearinventory.others

/core /sl, /sunlight 插件主指令. core.cmd.admin
/delspawn (spawn) /deletespawn 删除特定的(或默认的)传送点. core.cmd.delspawn
/enchant [附魔名] [附魔等级] /ench 附魔或驱魔你手中物品. core.cmd.enchant
/enchanting - 打开附魔台. core.cmd.enchanting
/enderchest

/enderchest (玩家名)

/echest, /ec 打开末影箱. core.cmd.enderchest

core.cmd.enderchest.others

/exp [set/give] [数量]

/exp [set/give] [玩家名] [数量]

/xp 修改玩家的经验值.

core.cmd.exp

core.cmd.exp.others

/extinguish

/extinguish (玩家名)

/ext 熄灭玩家身上的火焰.

core.cmd.ext

core.cmd.ext.others

/feed

/feed (玩家名)

- 恢复玩家的饥饿度.

core.cmd.feed

core.cmd.feed.others

/fly (0/1)

/fly (0/1) (玩家名)

- 切换飞行模式.

core.cmd.fly

core.cmd.fly.others

/gm (0/1/2/3)

/gm (0/1/2/3) (玩家名)

/gamemode, /gmc, /gms, /gma 更改玩家的游戏模式.

core.cmd.gamemode

core.cmd.gamemode.survival core.cmd.gamemode.creative core.cmd.gamemode.adventure core.cmd.gamemode.spectator core.cmd.gamemode.others

/give [material] (amount)

/give (玩家名) [material] (amount)

/item, /i 给予玩家物品.

core.cmd.give
/god (0/1)

/god (0/1) (玩家名)

- 切换玩家的上帝模式.

core.cmd.god

core.cmd.god.others

/hat - 戴帽子. core.cmd.hat
/heal

/heal (玩家名)

- 治疗玩家.

core.cmd.heal

core.cmd.heal.others

/ignore [玩家名] - 屏蔽玩家. core.cmd.ignore
/invsee [玩家名] /inv 查看玩家背包. core.cmd.inv

core.cmd.inv.others

/itemname [物品名 /rename 重命名手中物品. core.cmd.itemname
del|clear] /relore 修改手中物品的lore. core.cmd.itemlore
/list /online, /players 显示在线玩家. core.cmd.list
/me [action] - 在聊天内执行行为. core.cmd.me
/mobkill [type] /killmob 击杀附近的实体. core.cmd.mobkill
/more - 增加物品堆叠数至64. core.cmd.more
/near (范围) /nearby 显示附近的玩家. core.cmd.near
/nick (nick)/nick [玩家名] [nick] /name, /nickname 修改玩家昵称.

core.cmd.nick

core.cmd.nick.others

/nophantom/nophantom [玩家名] /antiphantom 关闭玩家附近的幻翼生成.

core.cmd.nophantom

core.cmd.nophantom.others

/playerinfo [玩家名] /pinfo 显示玩家信息. 支持 PlaceholderAPI. core.cmd.playerinfo
/powetool [command] /pt, /itemcmd 给手中物品添加指令. core.cmd.powetool
/repair (all) /fix 修复手中或背包内的物品. core.cmd.repair
/reply [text] /r 回复玩家的私聊. core.cmd.reply
/seen [玩家名] - 查看玩家最后在线时间. core.cmd.seen
/setspawn (名称) - 设置传送点. core.cmd.setspawn
/skull [玩家名] /head 获得玩家头颅. core.cmd.skull
/sms [玩家名] [text] /tell, /t, /m, /msg, /message, /w, /whisper, /pm 发送私聊消息给其他玩家. core.cmd.tell
/socialspy (0/1)

/socialspy (0/1) (玩家名)

- 切换侦查私聊模式.

core.cmd.socialspy

core.cmd.socialspy.others

/spawn (spawn)

/spawn [玩家名] (spawn)

- 强制玩家传送到传送点.

core.cmd.spawn

core.cmd.spawn.others

/spawner [type] - 更改刷怪笼实体类型. core.cmd.spawner

core.cmd.spawner.[type]

/spawnmob [type] [数量] /mob 刷怪. core.cmd.spawnmob

core.cmd.spawnmob.[type]

/speed (amount)

/speed (amount) (玩家名)

- 更改玩家速度.

core.cmd.speed

core.cmd.speed.others

/sudo [玩家名] [command]

/sudo [玩家名] c:[text]

- 强制玩家执行指令或发送聊天消息.

core.cmd.sudo
/suicide /killme, /killmeplease 自杀. core.cmd.suicide
/summon [玩家名] /s 传送玩家到你身边(相当于Essentials的/tphere). core.cmd.summon
/system /tps, /gc, /mem 系统信息. core.cmd.system
/thunder

/thunder (玩家名)

/smite 雷击玩家或你看着的方块.

core.cmd.thunder

core.cmd.thunder.others

/top

/top (玩家名)

/up 传送到顶部.

core.cmd.top

core.cmd.top.others

/tpaccept

/tpaccept (玩家名)

- 接受传送请求. core.cmd.tpaccept
/tpa [玩家名] /call 发送传送请求. core.cmd.tpa
/tp [玩家名]

/tp [who] [to]

- 传送一名玩家到另一名玩家身边.

core.cmd.tp

core.cmd.tp.others

/tpdeny

/tpdeny [玩家名]

- 拒绝其他玩家的传送请求.

core.cmd.tpdeny

core.cmd.tpdeny.others

/tppos [x] [y] [z]

/tppos [x] [y] [z] [玩家名]

- 传送到指定坐标.

core.cmd.tppos

core.cmd.tppos.others

/tptoggle - 开关接受传送请求.

core.cmd.tptoggle
/unignore [玩家名] - 不再屏蔽一名玩家.

core.cmd.unignore
/vanish

/vanish [玩家名]

/v 切换隐身模式.

core.cmd.vanish

core.cmd.vanish.others

/workbench /wb 打开工作台. core.cmd.workbench

实用功能

新版:

自定义行为引擎

你可以用来在使用物品时创建自定义的效果和行为。

示例格式:

actions:
  # 行为名
  example:
  # 设置 'action-executors'的目标
    target-selectors:
      # Target selector name. Used in 'action-executors' to define the action target.
      any:
      - '[RADIUS] ~distance: 20; ~allow-self: false; ~entity-type: pig;'
      self:
      - '[SELF]'
    # Defines custom conditions for 'action-executors'
    conditions:
      # Conditions list
      # For each condition you can provide 'message' parameter to send custom message for each condition in case of failure.
      list:
      - '[WORLD_TIME] ~amount: >12000;'
      # Here you can provide Action Name to switch to another actions list in case of conditions failure.
      actions-on-fail: fail
    # Executes the specified actions with custom parameters.
    action-executors:
    - '[COMMAND_CONSOLE] ~message: smite %target%; ~target: any;'
    - '[PROJECTILE] ~name: SHULKER_BULLET; ~target: any; ~speed: 3.5;'
    - '[PARTICLE_LINE] ~offset: 0.1,0,0.1; ~speed: 0; ~name: FLAME; ~target: any; ~amount: 50;'
    - '[POTION] ~name: JUMP; ~amount: 2; ~duration: 200; ~target: any;'
    - '[BURN] ~duration: 0; ~target: any;'
    - '[SOUND] ~name: ENTITY_WOLF_AMBIENT; ~target: any;'
  
  # 如果以上行为失效则执行以下行为。
  # because we put 'fail' name in 'actions-on-fail'.
  fail:
    target-selectors:
      self:
      - '[SELF]'
    # You can even provide more conditions here, but we don't need it now.
    conditions: {}
    action-executors:
    - '[MESSAGE] ~message: Conditions failed! Jumped to another actions.; ~target: self;'


目标选择器

定义行为执行器的目标.你可以随意设置。

目标选择器格式:

Every target parameter name MUST starts with '~' and ends with ':'

参数必须以';'结尾

target-selectors:
  # 自定义目标选择器名称。 Used in action executor's target parameter.
  any:
  - '[RADIUS] ~distance: 20; ~allow-self: true; ~entity-type: pig;'
  self:
   - '[SELF]'
123

可用的目标选择器:

名称 Prefix 描述 参数

加粗 = 必填参数

用法示例
From Sight [FROM_SIGHT] 选择执行者视野内的目标。
  • Distance
  • Allow Self
  • Attackable
  • Entity Type
  • Entity Health
[FROM_SIGHT] ~distance: 25; ~attackable: true; ~allow-self: false; ~entity-type: zombie;
Radius [RADIUS] 选择执行者一定范围内的目标。
  • Distance·距离
  • Allow Self·是否包括执行者自身
  • Attackable·是否可攻击
  • Entity Type·实体类型
  • Entity Health··实体血量
[RADIUS] ~distance: 5; ~attackable: true; ~allow-self: false;
Self [SELF] 将执行者视为目标。
  • Entity Health
[SELF] ~entity-health: >50%; ~party-member: false;

条件验证器

Defines custom conditions before the action-executors will process.

Also: In some plugin configs you can use conditions out of the total actions, in this case condition target parameter is not needed.

条件格式:

每个条件都必须以 '~' 开头,以 ':' 结尾

参数必须以 ';' 结尾

conditions:
  list:
  - '[WORLD_TIME] ~amount: >12000; ~message: It must be night!;'
  actions-on-fail: another

可用条件:

名称 前缀 描述 传输

RED = Required

Usage Example
Permission [PERMISSION] Requires the target to (not) have specified permission. You can provide negative permission to reverse this condition effect.
  • Target
  • Name
  • Message
[PERMISSION] ~name: -core.actions.test; ~message: You must have not permission!; ~target: self;

[PERMISSION] ~name: core.actions.test; ~message: You must have permission!; ~target: self;

Vault Balance [VAULT_BALANCE] Requires the target to have specified money amount on balance.
  • Target
  • Amount
  • Message
[VAULT_BALANCE] ~amount: =100; ~message: You must have $100!; ~target: self;

[VAULT_BALANCE] ~amount: <100; ~message: You must have < $100!; ~target: self; [VAULT_BALANCE] ~amount: >100; ~message: You must have > $100!; ~target: self;

World Time [WORLD_TIME] Requires the target's world time to be in specified range.
  • Target
  • Amount
  • Message
[WORLD_TIME] ~amount: >12000; ~message: It must be night!;

行为执行器

定义行为类型和参数.

行为执行器格式:

Every action parameter name MUST starts with '~' and ends with ':'

Parameter value MUST ends with ';'

action-executors:
- '[PREFIX] ~param1: value; ~param2: value text;'

action-executors:
- '[POTION] ~name: JUMP; ~amount: 2; ~duration: 200; ~target: any;' # Adds Jump II potion effect for 10 seconds.

可用行为执行器

名称 前缀 描述 参数

加粗 = 必填参数

用法
Action Bar [ACTION_BAR] 通过行动条发送消息. §  Delay

§  Target

§  Message

[ACTION_BAR] ~message: &a你好, %executor%!; ~target: self;
Broadcast [BROADCAST] 发送广播. §  Delay

§  Message

[BROADCAST] ~message: &a大家好!;
Burn [BURN] 点燃目标. §  Delay

§  Target

§  Duration

[BURN] ~duration: 100; ~target: pigs;
Command Player [COMMAND_PLAYER] 使用行动执行器执行指令. §  Delay

§  Target

§  Message

[COMMAND_PLAYER] ~message: smite %target%; ~target: players;
Command Console [COMMAND_CONSOLE] 以控制台身份执行指令. §  Delay

§  Target

§  Message

[COMMAND_CONSOLE] ~message: smite %target%; ~target: players;
Command Op [COMMAND_OP] 以管理员身份执行指令. §  Delay

§  Target

§  Message

[COMMAND_OP] ~message: smite %target%; ~target: players;
Firework [FIREWORK] 在目标位置发射烟花火箭. §  Delay

§  Target

[FIREWORK] ~target: self; ~delay: 20;
Hook [HOOK] 将目标勾连到执行器内. §  Delay

§  Target

[HOOK] ~target: pigs;
Message [MESSAGE] 给目标发送消息. §  Delay

§  Target

§  Message

[MESSAGE] ~message: &cYo, %target%; ~target: players;
Lightning [LIGHTNING] 在目标地点召唤闪电. §  Delay

§  Target

[LIGHTNING] ~target: pigs;
Go To [GOTO] Jumps to another actions section. §  Delay

§  Name

[GOTO] ~name: actions-name;
Particle Simple [PARTICLE_SIMPLE] Creates simple particle effect. §  Delay

§  Target

§  Name

§  Offset

§  Speed

§  Amount

[PARTICLE_SIMPLE] ~name:REDSTONE; ~offset: 0.1,0.1,0.1; ~speed: 0.1; ~amount: 30; ~target: pigs;
Potion [POTION] Adds a potion effect to target. §  Delay

§  Target

§  Name

§  Duration

§  Amount

Amount = Level

[POTION] ~name:JUMP; ~amount: 2; ~duration: 300; ~target: self;

Progress Bar [PROGRESS_BAR] Displays title progress bar. §  Delay

§  Target

§  Title

§  SubTitle

§  Duration

§  Color Empty

§  Color Filled

SubTitle = Bar Symbol

[PROGRESS_BAR] ~title: &cBar; ~subtitle: •; ~color-empty: &7; ~color-fill: &c; ~duration: 200; ~target: self;

Projectile [PROJECTILE] 对目标发射弹射物. §  Delay

§  Target

§  Name

§  Speed

Name = EntityType


[PROJECTILE] ~name: ARROW; ~speed: 3.5; ~target: around;

Sound [SOUND] 对目标播放音效. §  Delay

§  Target

§  Name

[SOUND] ~name: ENTITY_WOLF_AMBIENT; ~target: around;
Teleport [TELEPORT] Teleports target to the specified location. §  Delay

§  Target

§  Locatinon

[TELEPORT] ~location: world,25,10,25; ~target: self;

[TELEPORT] ~location: %executor.world%,%executor.x%,%executor.y%,%executor.z%; ~target: around;

Throw [THROW] Throws target away from the executor. §  Delay

§  Target

[THROW] ~target: around; ~delay: 10;
Titles [TITLES] 对目标发送标题. §  Delay

§  Target

§  Title

§  SubTitle

§  Fade In

§  Stay

§  Fade Out

[TITLES] ~title: &cTitle Text!; ~subtitle: &6SubTitle Text!; ~fadeIn: 10; ~stay: 50; ~fadeOut: 10; ~target: self;
Vault Add [VAULT_ADD] 修改目标的金额. §  Delay

§  Target

§  Amount

[VAULT_ADD] ~amount: 100; ~target: self;

[VAULT_ADD] ~amount: -100; ~target: self;


Action Parameters


可用参数:

名称 标志 Destination 描述 用法示例
Allow Self allow-self Target Selector Allows/Disallows to select the executor in target selector as a target. False by default. ~allow-self: false; | ~allow-self: true;
Amount amount All Defines the object amount for specified action. Negative values are allowed. ~amount: 10; | ~amount: -5;
Attackable attackable Target Selector Defines if target should be available to receive damage from the executor. This parameter only checks the WorldGuard and Residence flags and if target is a Citizens NPC. If this parameter is not provided, any entity will be selected. ~attackable: false; | ~attackable: true;
Delay delay Action Executor Delay in ticks (20 ticks = 1 second), before the action will be executed. ~delay: 100;
Distance distance All Defines the distance (in blocks) from the executor to target OR distance for specified action. ~distance: 30;
Duration duration Action Executor Defines the action duration in ticks (20 ticks = 1 second). ~duration: 250;
Entity Health entity-health Target Selector, Conditions You can use '>', '<' or '='. You can add '%' to check the current health of max. health. You can use decimal numbers. ~entity-health: 100%;

~entity-health: <25%;

~entity-health >0;

Entity Type entity-type Target Selector, Conditions Defines the entity type for target selector. If no type provided, target selector will select any entity type. You can provide multiple types. ~entity-type: pig;

~entity-type: player,zombie,villager;

Location location Action Executor Defines the location for action.

Placeholders:

§  %executor.world%, %executor.x%, %executor.y%, %executor.z%

§  %target.world%, %target.x%, %target.y%, %target.z%

Target placeholders replaces for the first target in a list.

~location:world,10,20,30;
Message message Action Executor, Conditions 设置消息文本.

Placeholders:

§  %executor% - Executor name

§  %target% - Target name.

~message: &a你好!;
Name name All 设置指定行为的目标名。 ~name: CLOUD;
Offset offset Action Executor Defines the object offset for specified action. Format: X,Y,Z. ~offset: 0.1,0.1,0.1;

~offset: 0,0,0;

Speed speed Action Executor Defines the object speed for specified action. ~speed: 0.5;
Target target Action Executor, Conditions Defines the target selector for action. You can provide multiple targets. Use target selector names ~target: selector-1;

~target: pigs,cows;

Title title Action Executor Defines the title text.

Placeholders:

§  %executor% - Executor name

§  %target% - Target name.

~title: &lHello, &f%executor%&e!;
SubTitle subtitle Action Executor Defines the subtitle text.

Placeholders:

§  %executor% - Executor name

§  %target% - Target name.

~subtitle: &lHello, &f%executor%&e!;
Fade In fadeIn Action Executor Defines the fade in time (in ticks) for titles. ~fadeIn: 10;
Stay stay Action Executor Defines the stay time (in ticks) for titles. ~stay: 40;
Fade Out fadeOut Action Executor Defines the fade out time (in ticks) for titles. ~fadeOut: 10;
Color Empty color-empty Action Executor Defines the color for unfilled elements of progress bar. ~color-empty: &7;
Color Filled color-fill Action Executor Defines the color for filled elements of progress bar. ~color-fill: &a;

1


旧版:

自定义行为

这些行为可用于插件的部分模块, 特别是是菜单.

支持在这里使用PlaceholderAPI!

配置行为格式:

actions:
- '[ACTION] ARGUMENTS [CHANCE]'
actinos:
- '[PLAYER_COMMAND] rules %25.0' # 有25%的几率强制玩家执行 /rules 指令.

行为几率:

如果你想要以一定几率触发行为,你只需在行为后面加上%NUM .NUM 为小数几率.

行为类型:

  • [CONSOLE_COMMAND] {CMD} - 从控制台执行指定指令. Cmd = 指令. 占位符: %p - 执行者名称
  • [OP_COMMAND] {CMD} - 以OP权限执行指令. Cmd = 指令. 占位符: %p - 执行者名称
  • [PLAYER_COMMAND] {CMD} - 以玩家权限执行指令. Cmd = 指令. 占位符: %p - 执行者名称
  • [TELEPORT] {WORLD} {X} {Y} {Z} - 传送目标到指定世界指定地点.
  • [TAKE_ITEM] (TYPE) (AMOUNT) (NAME) (LORE) - 从目标玩家的背包内拿走指定类型的物品.
  • [TAKE_ARMOR] {HELMET·头盔 / CHESTPLATE·胸甲 / LEGGINGS·护腿 / BOOTS·鞋子 / ALL·所有装备} - 从玩家身上拿走指定装备.
  • [TAKE_ECO] {AMOUNT} - 扣玩家的钱.
  • [MESSAGE] {TEXT} - 发送消息给目标.
  • [ACTION_BAR] {TEXT} - 发送actionbar消息给目标.
  • [TITLES] {TITLE_TEXT} {SUB_TITLE_TEXT} - 发送标题消息给目标. 空格 分离标题和子标题. 请使用 _ 作为空格. 示例: [TITLES] Hello_Player! This_is_subtitle!
  • [SOUND] {NAME} - 在指定地点播放音效. Name = 音效名.
  • [FIREWORK] - 发射随机的烟花.
  • [OPEN_GUI] {ID} - 打开指定ID的菜单.
  • [CLOSE] - 关闭菜单.
  • [DELAY] {TIME} - 行为之间的间隔. Time = 持续时间, 20 刻 = 1 秒.

自定义条件

这些条件可用于插件的部分模块, 特别是是菜单.

条件格式:

conditions:
- '[CONDITION] ARGUMENTS'
条件:
- '[PERMISSION] core.custom' # 需要 require core.custom 权限.

条件类型:

  • [OP] {true/false} - 需要玩家为管理员.
  • [PERMISSION] {permission} - 需要玩家拥有指定的权限.
  • [LEVEL] {AMOUNT} - 需要玩家有指定的经验等级.
  • [ITEM] (TYPE) (AMOUNT) (NAME) (LORE) - 需要玩家背包内有指定类型的物品.
  • [MONEY] {AMOUNT} - 需要玩家拥有指定数量的钱.