这是我的第一个模组,功能很简单——玩家死亡后将其踢出服务器,并在指定时间内(默认 24 小时)禁止其重新加入。该模组的目的是为粗心大意增加一种“惩罚”。
本模组已与 Hardcore Revival 和 You're in Grave Danger 模组测试并兼容良好。因此,如果一名玩家死亡(在非硬核服务器上),其他玩家将有 2 分钟的时间尝试救活他。如果时间耗尽,该玩家将被断开连接,直到“禁令”时间结束前无法返回。不过不用担心,他的物品会保存在他的坟墓中。
特性:
- 被踢出的玩家可以看到距离重新加入服务器还剩多少时间。
- 即使服务器离线,计时器也会继续工作,因为它使用的是真实时间而非服务器的运行时间。
- 本模组完全为服务端运行,客户端无需安装。
- 计时器时长可自定义
首次启动后,在 config 文件夹中会生成一个名为 "kicktimer.properties" 的文件。你可以在其中设置禁令的小时数和分钟数(两者将相加),并将服务器操作员排除在此模组的影响之外。配置只能通过手动编辑文件完成。
可以通过删除服务器目录中的 "bans" 文件夹(或其中的 "kicktimer_bans.dat" 文件)来重置所有活跃禁令。
免责声明:
我不打算维护或移植此模组,我只是为自己的私人服务器制作了它,并认为不妨分享出来。我不会进行任何兼容性测试或修复。此外,我没有测试超过 24 小时的计时器时长,因此请注意更长时间可能无法正常工作。
This is my first mod, which has a simple function - To kick the player from server on death and "ban" from re-entering for a set amount of time (by default 24 hours). The goal of this mod is to add a "penalty" for being careless.
The mod was tested and works very well with Hardcore Revival and You're in Grave Danger mods. So if a player dies (in a non-hardcore server), there will be 2 minutes for other players to try saving him. If time runs out, player will be disconnected and unable to come back until "ban's" time expires. But no worries, because his items would be stored inside his grave.
Features:
- Kicked player can see the time remaining before being able to re-join the server.
- Timer works even if server goes offline, as it takes real time into account instead of server's uptime.
- Mod is completely server-side, so client doesn't need to install it.
- Timer's duration is customizable
A file named "kicktimer.properties" can be found in config after first start. There you can set the ban duration in hours and minutes (they will be added up) and exclude server operator from being affected by this mod. Configuration is possible only by manually editing the file.
All active bans can be reset by deleting the "bans" folder (or just the file "kicktimer_bans.dat" inside it) in server directory.
Disclaimer:
I'm not planning to maintain or port this mod, I just made it for my private server and thought that I may as well share it. I won't do any compatibility testing or fixing. Also I didn't test the timer's duration beyond 24 hours, so be warned that longer times might not work.
评论 0
登录后参与评分
还没有评论,来抢沙发吧