- 欢迎来到Minecraft插件百科!
- 对百科编辑一脸懵逼?帮助:快速入门带您快速熟悉百科编辑!
- 因近日遭受攻击,百科现已限制编辑,有意编辑请加入插件百科企鹅群:223812289
SunLight-Core:修订间差异
Qsefthuopq(留言 | 贡献) (→实用功能) |
Qsefthuopq(留言 | 贡献) |
||
第48行: | 第48行: | ||
exit-afk-actions: [] | exit-afk-actions: [] | ||
==Anti-Lagg== | ==Anti-Lagg== | ||
这个模块添加了简单的优化系统来优化你的服务器性能和提升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 | |||
==椅子== | ==椅子== | ||
==聊天== | ==聊天== |
2019年6月25日 (二) 03:15的版本
欢迎来到SunLight-Core插件百科
介绍 · Introduction
这是款轻量级的基础插件,包含了很多对于管理服务器很有用的功能. 插件分成多个模块,你可以随意关闭插件的任意模块.
模块 · Modules
模块
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: []
Anti-Lagg
这个模块添加了简单的优化系统来优化你的服务器性能和提升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
椅子
聊天
经济
补丁
菜单
家
礼包
随机传送
计分版
TAB
地标
欢迎消息
多世界管理
配置
指令和权限
所有权限:
- 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 [amount]/air [amount] (player) | - | 更改空气等级. | 是
否 |
core.cmd.air
core.cmd.air.others |
/anvil/anvil (player) | - | 打开铁砧. | 是
否 |
core.cmd.anvil
core.cmd.anvil.others |
/armor [player] | - | 查看和更换玩家的装备. | 是 | core.cmd.armor |
/back/back [player] | - | 传送回上一个地方. | 是
否 |
core.cmd.back
core.cmd.back.others |
/broadcast [text] | /bc | 广播消息. | 否 | core.cmd.broadcast |
/burn [player] [time] | /ignite | 点燃玩家. | 否 | core.cmd.burn |
/clearchat | /cchat | Clears chat. | 否 | core.cmd.clearchat |
/clearinventory/clearinventory (player) | /clearinv, /clear, /ci | Clears inventory including armor. | 是
否 |
core.cmd.clearinventory
core.cmd.clearinventory.others |
/core | /sl, /sunlight | Main plugin command. | 否 | core.cmd.admin |
/delspawn (spawn) | /deletespawn | Deletes the specified (or default) spawn location. | 否 | core.cmd.delspawn |
/enchant [enchant] [level] | /ench | Enchants or disenchants (when level is 0) item in your hand. | 是 | core.cmd.enchant |
/enchanting | - | Opens enchanting table. | 是 | core.cmd.enchanting |
/enderchest/enderchest (player) | /echest, /ec | Opens enderchest of player. | 是 | core.cmd.enderchest
core.cmd.enderchest.others |
/exp [set/give] [amount]/exp [set/give] [player] [amount] | /xp | Changes player's exp. | 是
否 |
core.cmd.exp
core.cmd.exp.others |
/extinguish/extinguish (player) | /ext | Extinguish the player. | 是
否 |
core.cmd.ext
core.cmd.ext.others |
/feed/feed (player) | - | Feeds the player. | 是
否 |
core.cmd.feed
core.cmd.feed.others |
/fly (0/1)/fly (0/1) (player) | - | Toggles fly mode. | 是
否 |
core.cmd.fly
core.cmd.fly.others |
/gm (0/1/2/3)/gm (0/1/2/3) (player) | /gamemode, /gmc, /gms, /gma | Changes player's gamemode. | 是
否 |
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 (player) [material] (amount) | /item, /i | Gives an item to player. | 是
否 |
core.cmd.give |
/god (0/1)/god (0/1) (player) | - | Toggle player's god mode. | 是
否 |
core.cmd.god
core.cmd.god.others |
/hat | - | Puts item from hand on helmet. | 是 | core.cmd.hat |
/heal/heal (player) | - | Heals the player. | 是
否 |
core.cmd.heal
core.cmd.heal.others |
/ignore [player] | - | Adds player to ignore list. | 是 | core.cmd.ignore |
/invsee [player] | /inv | View and manage player's inventory. | 是 | core.cmd.inv
core.cmd.inv.others |
/itemname [name] | /rename | Renames item in hand. | 是 | core.cmd.itemname |
/list | /online, /players | Shows players list. | 否 | core.cmd.list |
/me [action] | - | Do the action in chat. | 是 | core.cmd.me |
/mobkill [type] | /killmob | Kills entities with specified type. | 是 | core.cmd.mobkill |
/more | - | Increases amount of item stack to 64. | 是 | core.cmd.more |
/near (radius) | /nearby | Displays the nearest players. | 是 | core.cmd.near |
/nick (nick)/nick [player] [nick] | /name, /nickname | Changes or restores player nick. | 是
否 |
core.cmd.nick
core.cmd.nick.others |
/nophantom/nophantom [player] | /antiphantom | Disables phantoms for player. | 是
否 |
core.cmd.nophantom
core.cmd.nophantom.others |
/playerinfo [player] | /pinfo | Shows player info. Supports PlaceholderAPI. | 否 | core.cmd.playerinfo |
/powetool [command] | /pt, /itemcmd | Attach command to item in hand. | 是 | core.cmd.powetool |
/repair (all) | /fix | Repair item in hand or full inventory. | 是 | core.cmd.repair |
/reply [text] | /r | Reply to the last player who PM you. | 是 | core.cmd.reply |
/seen [player] | - | See last player online. | 否 | core.cmd.seen |
/setspawn (spawn) | - | Sets the specified (or default) spawn point. | 是 | core.cmd.setspawn |
/skull [player] | /head | Gives you head of specified player. | 是 | core.cmd.skull |
/sms [player] [text] | /tell, /t, /m, /msg, /message, /w, /whisper, /pm | Sends private message to a player. | 否 | core.cmd.tell |
/socialspy (0/1)/socialspy (0/1) (player) | - | Toggles PM spy mode for player. | 是
否 |
core.cmd.socialspy
core.cmd.socialspy.others |
/spawn (spawn)/spawn [player] (spawn) | - | Force moves player to the spawn point. | 是
否 |
core.cmd.spawn
core.cmd.spawn.others |
/spawner [type] | - | Changes spawner entity type. | 是 | core.cmd.spawner
core.cmd.spawner.[type] |
/spawnmob [type] [amount] | /mob | Spawns specified amount of mob. | 是 | core.cmd.spawnmob
core.cmd.spawnmob.[type] |
/speed (amount)/speed (amount) (player) | - | Changes player speed. | 是
否 |
core.cmd.speed
core.cmd.speed.others |
/sudo [player] [command]/sudo [player] c:[text] | - | Force players execute command or type in chat. | 是
否 |
core.cmd.sudo |
/suicide | /killme, /killmeplease | Kills yourself. | 是 | core.cmd.suicide |
/summon [player] | /s | Teleport players to executor. | 是 | core.cmd.summon |
/system | /tps, /gc, /mem | System info. | 否 | core.cmd.system |
/thunder/thunder (player) | /smite | Summons lightning on player or block you're looking. | 是
否 |
core.cmd.thunder
core.cmd.thunder.others |
/top/top (player) | /up | Teleport to the highest block above you. | 是
否 |
core.cmd.top
core.cmd.top.others |
/tpaccept/tpaccept (player) | - | Accepts teleport request. | 是 | core.cmd.tpaccept |
/tpa [player] | /call | Send teleport request. | 是 | core.cmd.tpa |
/tp [player]/tp [who] [to] | - | Teleports to player or teleport one player to another. | 是
否 |
core.cmd.tp
core.cmd.tp.others |
/tpdeny/tpdeny [player] | - | Declines teleport request. | 是
否 |
core.cmd.tpdeny
core.cmd.tpdeny.others |
/tppos [x] [y] [z]/tppos [x] [y] [z] [player] | - | Teleport to specified coordinates. | 是
否 |
core.cmd.tppos
core.cmd.tppos.others |
/tptoggle | - | Toggle teleport requests. | 是
否 |
core.cmd.tptoggle |
/unignore [player] | - | Removes player from ignore list. | 是
否 |
core.cmd.unignore |
/vanish/vanish [player] | /v | Toggle vanish mode. | 是
否 |
core.cmd.vanish
core.cmd.vanish.others |
/workbench | /wb | 打开工作台. | 是 | core.cmd.workbench |
实用功能
自定义行为
这些行为可用于插件的部分模块, 特别是是菜单.
支持在这里使用PlaceholderAPI!
配置行为格式:
actions:
- '[ACTION] ARGUMENTS [CHANCE]'
行为:
- '[PLAYER_COMMAND] rules %25.0' # Force player to execute /rules command with 25% chance.
Action chance:
To make the action have a chance to execute, add %NUM at the end of action. Where NUM is chance decimal.
行为类型:
- [CONSOLE_COMMAND] {CMD} - Executes the specified command by console. Cmd = Command. Placeholders: %p - Executor name
- [OP_COMMAND] {CMD} - Executes the specified command by target as OP. Cmd = Command. Placeholders: %p - Executor name
- [PLAYER_COMMAND] {CMD} - Executes the specified command by target. Cmd = Command. Placeholders: %p - Executor name
- [TELEPORT] {WORLD} {X} {Y} {Z} - Teleport target on specified coordinates.
- [TAKE_ITEM] (TYPE) (AMOUNT) (NAME) (LORE) - Takes specified amount of items from player's inventory.
- [TAKE_ARMOR] {HELMET / CHESTPLATE / LEGGINGS / BOOTS / ALL} - Takes specified armor from player's inventory.
- [TAKE_ECO] {AMOUNT} - Takes specified amount of money from player's balance.
- [MESSAGE] {TEXT} - Sends message to target.
- [ACTION_BAR] {TEXT} - Sends action bar message to target.
- [TITLES] {TITLE_TEXT} {SUB_TITLE_TEXT} - Sends title message to target. Space separates the titles and subtitles. Use _ as a space. Example: [TITLES] Hello_Player! This_is_subtitle!
- [SOUND] {NAME} - Plays sound at target location. Name = Sound name.
- [FIREWORK] - Launch random firework.
- [OPEN_GUI] {ID} - Opens GUI with specified ID.
- [CLOSE] - Closes GUI.
- [DELAY] {TIME} - Delay between the actions. Time = Duration in Ticks, 20 ticks = 1 second.
自定义条件
这些条件可用于插件的部分模块, 特别是是菜单.
Condition format:
conditions:
- '[CONDITION] ARGUMENTS'
条件:
- '[PERMISSION] core.custom' # Will require core.custom permission.
Condition Types:
- [OP] {true/false} - Requires players to be (de)OP.
- [PERMISSION] {permission} - Requires player to have specified permission.
- [LEVEL] {AMOUNT} - Requires player to have specified exp level.
- [ITEM] (TYPE) (AMOUNT) (NAME) (LORE) - Requires specified amount of items to be in player's inventory.
- [MONEY] {AMOUNT} - Requires specified amount of money to be on player's balance.