Exaroton Server Util
这款 Fabric 模组旨在为 Exaroton Minecraft 服务器的所有者提供实用的命令,使用的是官方 Exaroton API Java 库。这些命令很可能只是在游戏中执行你已通过 Web 界面完成的操作的方式。
说明
有关此模组的设置和使用的完整说明,请参阅 wiki。
免责声明
请注意,使用此模组时,你的 API 令牌将以明文形式存储在配置文件中。
这意味着,任何被授权访问服务器仪表板“文件”页面的 Exaroton 用户,都可能通过 API 获得对你账户的不受期望的访问权限。
如果你知道你的令牌已泄露——或者你还没有令牌——你可以在此处重置它:HERE。
依赖项
此模组目前依赖于 owo-lib;具体版本取决于你正在使用的此模组的版本,并且该版本页面将始终列出所需的版本。
功能
目前,此模组提供以下命令:
/credits - 返回服务器剩余的 Exaroton 点数,并使用服务器 RAM 计算剩余小时数(点数 ÷ RAM)。仅通过 积分池 起作用。
/restart - 在请求 Exaroton 重启服务器之前等待 secondsToWaitBeforeRestart(在配置文件中设置)秒。
/restart <delayTimeSeconds> - 在重启前等待 delayTimeSeconds 秒,完全忽略配置文件。
法律条款
此模组及其源代码受 LGPL-3.0-only 许可证保护,你可以在 这里 找到该许可证。
Exaroton API Java 库受与本项目其他部分不同的(MIT)许可证保护,你可以在 这里 找到该许可证。
Exaroton Server Util
This Fabric mod aims to provide useful commands to owners of Exaroton Minecraft servers, using the official Exaroton API Java library. These commands are likely to just be in-game ways of doing stuff you can already do via the web interface.
Instructions
For full instructions on setup and usage of this mod, see the wiki.
Disclaimer
BE AWARE THAT BY USING THIS MOD, YOUR API TOKEN WILL BE STORED IN PLAIN TEXT IN A CONFIG FILE.
THIS MEANS THAT ANY EXAROTON USER YOU GIVE ACCESS TO THE 'FILES' PAGE OF YOUR SERVER DASHBOARD COULD POTENTIALLY GAIN UNWANTED ACCESS TO YOUR ACCOUNT, USING THE API.
IF YOU KNOW YOUR TOKEN IS COMPROMISED - OR IF YOU DON'T HAVE A TOKEN YET - YOU CAN RESET IT HERE.
Dependencies
This mod currently depends on owo-lib; the specific version depends on which version of this mod you are using, and it will always be listed on that version's page.
Functionality
Currently, the mod provides the following commands:
/credits - Returns how many Exaroton credits the server has left, and uses the server RAM to calculate the number of hours remaining (credits ÷ RAM). Only functions through credit pools.
/restart - Waits for secondsToWaitBeforeRestart (set in the config file), before requesting for Exaroton to restart the server.
/restart <delayTimeSeconds> - Waits for delayTimeSeconds before restarting, ignoring the config file completely.
Legal
This mod and its source code are covered by the LGPL-3.0-only license, which can be found here.
The Exaroton API Java library is covered by a different (MIT) license to the rest of this project, which can be found here.
评论 0
登录后参与评分
还没有评论,来抢沙发吧