Pomodoro
一款高度可定制、基于图形用户界面(GUI)的番茄钟计时器,帮助玩家在 Minecraft 中管理时间并保持专注。
依赖要求
使用方法
本插件主要通过交互式 GUI 进行操作。
- 打开主菜单:输入
/pomodoro 或 /pomo。
- 在 GUI 中,你可以:
- 启动计时器:选择一个预设配置以开始你的工作周期。
- 创建自定义预设:设计你自己的工作与休息时间表。
- 编辑与删除:右键点击你的自定义预设以修改或删除它们。
- 控制活动计时器:暂停、恢复、停止计时器,并切换 Boss 栏和屏幕标题等视觉效果。
指令与权限
虽然大多数操作通过 GUI 完成,但也提供了便捷的指令作为快捷方式。主要指令为 /pomodoro(别名:/pomo)。
玩家指令
/pomo 或 /pomo gui:打开主菜单。
/pomo start [preset_name]:启动一个周期。如果未指定预设名称,则打开 GUI。
/pomo pause:暂停计时器。
/pomo resume:恢复计时器。
/pomo stop:停止当前周期。
/pomo next:手动进入下一个状态(例如,从工作切换到休息)。
管理员指令
配置
插件的行为可以通过两个主要文件进行广泛自定义:config.yml 和 presets.yml。
config.yml
此文件控制插件的全局设置。你可以在这里配置:
- 限制功能:在工作期间控制玩家的聊天和移动等行为。
- 显示默认值:设置 Boss 栏和标题计时器的默认可见性。
- 语言:配置默认语言,并启用/禁用自适应语言检测。
- 颜色与音效:自定义所有插件事件的 Boss 栏颜色和音效。
有关每个选项的详细信息,请参阅 config.yml 文件内的注释。
presets.yml
此文件定义了提供给所有玩家的默认番茄钟计时器预设,用作示例或起点。你可以在此处添加、删除或修改这些预设。玩家创建的自定义预设存储在单独的位置,不会更改此文件。
预设结构:
presets:
standard:
name: "Standard"
icon: "CLOCK"
enchanted: false
work: 25 # 分钟
break: 5 # 分钟
long-break: 15 # 分钟
sessions: 4 # 长休息前的工作周期数
name:GUI 中显示的名称。
icon:GUI 中图标的材质名称(例如 BOOK、DIAMOND_SWORD)。
enchanted:如果为 true,图标将显示附魔光泽。
work、break、long-break:持续时间,单位为分钟。
sessions:在开始长休息之前需要完成的工作周期数量。
支持的语言
该插件完全支持翻译,并开箱即用地支持以下语言。语言可以在 config.yml 中全局设置,并且有一个自适应语言选项,如果可用,将自动使用玩家的客户端语言。
| 语言 |
代码 |
语言 |
代码 |
| English |
en |
German |
de |
| Spanish |
es |
French |
fr |
| Japanese |
ja |
Korean |
ko |
| Polish |
pl |
Portuguese |
pt |
| Russian |
ru |
Swedish |
sv |
| Chinese (Simplified) |
zh_CN |
Chinese (Traditional) |
zh_TW |
| Chinese (Hong Kong) |
zh_HK |
|
|
许可证
本项目采用 Apache 2.0 许可证授权。详情请参阅 LICENSE 文件。
Pomodoro
A highly customizable, GUI-driven Pomodoro timer to help players manage their time and stay focused in Minecraft.
Requirements
- Server Version: Paper / Folia 1.21+
- Dependencies: PacketEvents (Required)
How to Use
This plugin is designed to be used primarily through its interactive GUI.
- Open the Main Menu: Simply type
/pomodoro or /pomo.
- From the GUI, you can:
- Start a Timer: Select a pre-configured preset to begin your session.
- Create Custom Presets: Design your own work/break schedules.
- Edit & Delete: Right-click your custom presets to modify or remove them.
- Control Active Timers: Pause, resume, stop, and toggle visuals like the Boss Bar and on-screen titles.
Commands & Permissions
While most actions are performed in the GUI, commands are available as convenient shortcuts. The main command is /pomodoro (alias: /pomo).
Player Commands
/pomo or /pomo gui: Opens the main menu.
/pomo start [preset_name]: Starts a session. Opens the GUI if no preset is specified.
/pomo pause: Pauses the timer.
/pomo resume: Resumes the timer.
/pomo stop: Stops the current session.
/pomo next: Manually advances to the next state (e.g., from work to break).
Admin Commands
/pomo reload: Reloads all configuration files.
- Permission:
pomodoro.admin
Configuration
The plugin's behavior can be extensively customized through two main files: config.yml and presets.yml.
config.yml
This file controls the global settings of the plugin. Here you can configure:
- Restrictions: Control player actions like chatting and movement during work sessions.
- Display Defaults: Set the default visibility for the Boss Bar and Title timers.
- Language: Configure the default language and enable/disable adaptive language detection.
- Colors & Sounds: Customize the Boss Bar colors and sound effects for all plugin events.
For detailed information on each option, please refer to the comments within the config.yml file.
presets.yml
This file defines the default Pomodoro timer presets provided to all players, serving as examples or starting points. You can add, remove, or modify these presets here. Player-created custom presets are stored separately and do not alter this file.
Preset Structure:
presets:
standard:
name: "Standard"
icon: "CLOCK"
enchanted: false
work: 25 # minutes
break: 5 # minutes
long-break: 15 # minutes
sessions: 4 # Number of work sessions before a long break
name: The display name in the GUI.
icon: The material name for the icon in the GUI (e.g., BOOK, DIAMOND_SWORD).
enchanted: If true, the icon will have an enchanted glint.
work, break, long-break: Duration in minutes.
sessions: The number of work cycles to complete before a long break starts.
Supported Languages
The plugin is fully translatable and supports the following languages out of the box. The language can be set globally in config.yml, and an adaptive language option will automatically use a player's client language if available.
| Language |
Code |
Language |
Code |
| English |
en |
German |
de |
| Spanish |
es |
French |
fr |
| Japanese |
ja |
Korean |
ko |
| Polish |
pl |
Portuguese |
pt |
| Russian |
ru |
Swedish |
sv |
| Chinese (Simplified) |
zh_CN |
Chinese (Traditional) |
zh_TW |
| Chinese (Hong Kong) |
zh_HK |
|
|
License
This project is licensed under the Apache 2.0 License. See the LICENSE file for details.
评论 0
登录后参与评分
还没有评论,来抢沙发吧