我的插件
一个为 Canyon(Minecraft Beta 1.7.3 的 CraftBukkit 分支) 定制的插件,为服务器添加各种实用的工具。
功能
- 供非 OP 玩家使用的
/players / /list 命令。
- 方块日志记录器!(同时处理从箱子中偷取物品的行为) - 检查功能位于
/blocklog <-- 未完成!尚不支持活塞或爆炸等修改方块的操作!
- 可配置的
/info / /rules 命令。
- 可配置的“问候”和“顺便说一下”消息。
/myplugin-reload 用于在服务器运行时重新加载配置。
警告:请记住永远不要在此插件启用时使用 /reload,因为这已知会导致问题。
文档
配置文件
它存储在 plugins/my-plugin/config.yml 中。
方块日志记录器
它将记录方块的放置或破坏,以及物品从容器中取出或放入的情况。
该命令的名称为 blocklog,并拥有以下别名:blocklogger、inspect。
不带参数使用时,它将切换执行该命令的玩家的状态;如果提供了至少一个参数,则将切换第一个参数指定玩家的状态。
当检查状态启用时,你可以左击方块以查看其历史记录,或右击方块以查看你点击的面相邻方块的历史记录。你将无法破坏或放置方块,也无法与门或陷阱门等进行交互。
在检查双箱子的物品进出情况时,请确保检查两个方块,因为插件只会保存其中一个方块的交互记录。
方块日志历史将保存在 plugins/my-plugin/block-log-book.txt 中。
你还应该查看配置中的 storeInMemory 选项。
玩家列表命令
所有玩家都可以通过 /players 或 /list 使用它。它将显示在线玩家的数量及其昵称。
重新加载
你可以在服务器运行时安全地使用 /myplugin-reload 或 /reload-myplugin 来重新加载配置文件。
信息命令及问候/顺便说一下消息
直观的概念,已在配置文件中充分记录。
权限
/blocklog - myplugin.blocklog.inspect(默认:OP)
/players - myplugin.playerlist(默认:开启)
/myplugin-reload - myplugin.reload(默认:OP)
/info - myplugin.info(默认:开启)
My Plugin
A custom plugin for canyon, a craftbukkit fork for minecraft beta 1.7.3, adding various useful utilities to the server.
Features
- a
/players / /list command for non-op players.
- a block logger! (also handles stealing items from chests) - inspection available under
/blocklog <- INCOMPLETE! Some block-altering actions like pistons or explosions aren't handled yet!
- a configurable
/info / /rules command.
- configurable "hello" and "btw" messages.
/myplugin-reload for reloading the config while the server is running.
WARNING: Remember to never use /reload with this plugin, since it is known to create problems.
Documentation
The configuration file
It's stored in plugins/my-plugin/config.yml.
The block logger
It will log blocks being placed or destroyed and items being taken from or put into containers.
The command's name is blocklog, and it uses the following aliases: blocklogger, inspect.
When used without arguments, it will toggle the inspection status of the player who ran it, and if at least a single argument is provided, the player specified in the first argument will get their inspection status toggled instead.
When the inspection status is enabled, you can left-click blocks to check their history, or right-click them to see the history of the block next to them (on the block face you clicked at). You won't be able to destroy or place blocks, or interact with e.g. doors or trapdoors.
When checking double-chests for items being taken or put in, make sure that you check both blocks since the plugin will save the interactions at only one.
The block log history will be saved in plugins/my-plugin/block-log-book.txt.
You should also check out the storeInMemory option in the config.
The player list command
All players can use it under /players or /list. It will print the amount of online players and their nicknames.
Reloading
You can safely use /myplugin-reload or /reload-myplugin to reload the configuration file while the server is running.
The info command and hello/btw messages
Intuitive concepts, already well-documented within the config file.
Permissions
/blocklog - myplugin.blocklog.inspect (default: op)
/players - myplugin.playerlist (default: true)
/myplugin-reload - myplugin.reload (default: op)
/info - myplugin.info (default: true)
评论 0
登录后参与评分
还没有评论,来抢沙发吧