这是我的第一个插件!
Countdown 是一个简单的插件,用于向服务器用户广播倒计时。拥有正确权限的用户可以通过调用计时器或即时声明来启动倒计时。
功能:
- 即时启动计时器。
- 启动在 timers 文件中声明的计时器。
- 取消正在运行的计时器。
- 通过权限控制可以启动计时器的用户。
命令:
共有 4 个命令:
/countdown <x> - 启动倒计时,从 <x> 秒开始。
/countdown <timer> - 通过声明计时器名称来启动倒计时。
/countdown cancel - 取消当前正在运行的倒计时。
/countdown reload - 重新加载配置文件和计时器文件。
安装:
将 .jar 文件放入你的 plugins 文件夹中。配置文件和计时器文件将在首次运行时创建。
配置:
displaybyhour - 每小时显示一次倒计时消息。
displaybyminute - 每分钟显示一次倒计时消息。
displaybyhalfminute - 每 30 秒显示一次倒计时消息。
displayatten - 在剩余 10、9、8... 秒时显示倒计时消息。
timers.yml 文件包含用户可以启动的所有计时器。以下是一个计时器的示例:
- exampletimer:
- start: 60
- message: 事件将在 <x> 秒后开始!
- start_mess: 倒计时已开始!
- zero_mess: 开始!
- cmd: mycommand
开始消息、归零消息和命令均为可选。
权限:
使用 PermissionsBukkit
权限节点:
countdown.start - 允许启动/取消倒计时。
更新日志:
版本 2.2:
添加了在倒计时期间以 5 分钟为增量显示时间的选项
改进了运行 '/countdown' 时的帮助选项
更新至 1.6.4-R2.0
版本 2.1:
添加了 'time' 命令以显示剩余时间
更新至 1.4.2-R0.2
版本 2.0:添加了开始消息选项。
添加了在倒计时结束时自动运行命令的功能。
更新至最新 Bukkit 版本。
版本 1.0
初始发布版本。
This is my first plugin!
Countdown is a simple plugin used to broadcast a countdown to users on a server. Users who have the correct permissions can start a countdown, either by calling a timer or by declaring one on the fly.
Features:
- Start a timer on the fly.
- Start a timer declared in a timers file.
- Cancel a running timer.
- People who can start timers secured by permissions.
Commands:
There are 4 commands:
/countdown <x> - Start a countdown, starting a <x> seconds.
/countdown <timer> - Start a countdown by declaring the name of the timer.
/countdown cancel - Cancels the currently running countdown.
/countdown reload - Reload the config and timers files.
Installing:
Put the .jar in your plugins folder. The config and timers files will be created on first run.
Config:
displaybyhour - Displays the countdown message every hour.
displaybyminute - Displays the countdown message every minute.
displaybyhalfminute - Displays the countdown message every 30 seconds.
displayatten - Displays the countdown message at 10, 9, 8...
The timers.yml file contains all the timers that a user can start. Here is an example of a timer:
- exampletimer:
- start: 60
- message: Event begins in <x> seconds!
- start_mess: Event countdown has started!
- zero_mess: Go!
- cmd: mycommand
Start message, zero message, and command are optional.
Permissions:
Uses PermissionsBukkit
Permission nodes:
countdown.start - Ability to start/cancel a countdown.
Changelog:
Version 2.2:
Added option to display time in 5 minute increments during countdown
Improved help options when running '/countdown'
Updated to 1.6.4-R2.0
Version 2.1:
Added 'time' command to display remaining time
Updated to 1.4.2-R0.2
Version 2.0: Added start message option.
Added ability to automatically run command at end of countdown.
Updated to newest Bukkit version.
Version 1.0
Initial release version.
评论 0
登录后参与评分
还没有评论,来抢沙发吧