ServerPlayertimeTicker
A fabric mod for Minecraft that counts the time a player is on the server and kicks them for the day after a certain time.
介绍
ServerPlayertimeTicker
ServerPlayertimeTicker is a Minecraft Fabric mod that tracks and manages playtime for players on a server.
Features
- Automatic Playtime Tracking: Automatically tracks the playtime of each player on the server.
- Maximum Playtime Limit: Enforces a maximum playtime limit for each player, kicking them from the server if exceeded.
- Configurable: Customize settings such as maximum playtime and hotbar message using a configuration file.
- Real-time Updates: Syncs configuration changes in almost real-time, ensuring the server adapts quickly.
- Luckperms usage: Using the “playtime.immune” permission on luckperms you can exclude any particular player from having a countdown.
Usage
- Installation:
- Download the latest release JAR file from the Releases page.
- Place the downloaded JAR file into the
modsfolder of your Minecraft Fabric server.
- Configuration:
- After starting the server with the mod installed, a configuration file (
playtime_data.json) will be generated in theconfigfolder. - Edit the configuration file to adjust settings such as maximum playtime and hotbar message format.
- Note: Use %m and %s as seen in the default config to place the minute and second counter in the text.
- Operation:
- The mod will automatically start tracking playtime for each player as soon as they join the server.
- Players will see their remaining playtime above the hotbar.
- If a player exceeds the maximum playtime, they will be automatically kicked from the server.
Contributing
Contributions are welcome! If you’d like to contribute to the development of this mod, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/fooBar). - Commit your changes (
git commit -am 'Add some fooBar'). - Push to the branch (
git push origin feature/fooBar). - Create a new Pull Request.
License
This mod is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
常见问题
ServerPlayertimeTicker 支持哪些 Minecraft 版本?
ServerPlayertimeTicker 支持 Minecraft Java 版 1.19.2–1.20.1,共 2 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
ServerPlayertimeTicker 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
freegamerhd12 的其他作品
查看全部 →
LimitedLives
A fabric mod for Minecraft that counts the amount of times a player has died and puts them into spectator mode once they hit the limit.
KeepExperience
A fabric mod that saves the experience before death and gives it to the player again when they die
评论
登录后评论和评分