jxmm52547 / practical-widgets Goto Github PK
View Code? Open in Web Editor NEW适用于mirai的小组件插件
License: GNU Affero General Public License v3.0
适用于mirai的小组件插件
License: GNU Affero General Public License v3.0
When use /hyp player savegame
, control console return error:
2024-01-21 19:41:07 E/Practical-Widgets: Exception in coroutine Plugin xyz.jxmm.Practical_Widgets of Practical-Widgets
java.lang.NullPointerException: Cannot invoke "com.google.gson.JsonElement.getAsString()" because the return value of "com.google.gson.JsonObject.get(String)" is null
at Practical_Widgets-0.5.2-50w.jar//xyz.jxmm.minecraft.player.Player.player(Player.java:48)
at Practical_Widgets-0.5.2-50w.jar//xyz.jxmm.minecraft.Hypixel.hypixel(Hypixel.java:77)
at Practical_Widgets-0.5.2-50w.jar//xyz.jxmm.minecraft.Hypixel.perm(Hypixel.java:243)
at Practical_Widgets-0.5.2-50w.jar//xyz.jxmm.PracticalWidgets.lambda$onEnable$1(PracticalWidgets.java:101)
at net.mamoe.mirai.event.EventChannel$subscribeAlways$2$1.invoke(EventChannel.kt:600)
at net.mamoe.mirai.event.EventChannel$subscribeAlways$2$1.invoke(EventChannel.kt:600)
at kotlinx.coroutines.InterruptibleKt.runInterruptibleInExpectedContext(Interruptible.kt:51)
at kotlinx.coroutines.InterruptibleKt.access$runInterruptibleInExpectedContext(Interruptible.kt:1)
at kotlinx.coroutines.InterruptibleKt$runInterruptible$2.invokeSuspend(Interruptible.kt:43)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
Player下数据建议改为最后(上次登录->最后登录)
上次注销时间改为最后退出时间
大厅等级改为Hypixel等级
今典模式(错别字)->经典模式
感染模式下不应该写"总"
Duels模式快做(
Arcade缩写应为AC
退群提醒功能不需要总开关,应该默认全部关闭,然后由admin用命令指定开启某群(或在配置文件中修改)
重启会导致退群提醒功能自动开启(配置文件恢复为true)
输入/hyp返回帮助菜单
MVP+及以上+的颜色
MVP++的Rank颜色(可以手动改成青色)
主大厅钓鱼数(最好可以做一个单独的type获取各种鱼的数据)
YOUTUBE Rank
在线状态(是否在线,在哪个大厅/游戏里)
Arc缺少心跳水立方
BW胜率计算错误
公会数据
例如在EST时间2023年12月31日查询成员LiSi获取的数据:
公会:GongHui
公会会长:ZhangSan
公会成员数:25
公会创建时间:2023年1月1日13:00
公会等级:112级(1.83/3M经验 61%)
最高同时在线:15
每日最高经验:2.57M
公会胜场数:249
公会每周经验:9.79M
2023/12/31:1.45M
2023/12/30:2.42M
2023/12/29:1.58M
2023/12/28:2.45M
2023/12/27:1.05M
2023/12/26:805.24K
2023/12/25:49.76K
平均每位成员经验:
今日:58040 一周:391.92k成员:LiSi
公会rank:member
加入时间:2023年5月29日
完成公会任务:568
个人每周经验:900K
2023/12/31:125.87K#5/25
2023/12/30:503.84K#1/25
2023/12/29:0#20/25
2023/12/28:117.42K#6/25
2023/12/27:14039#14/25
2023/12/26:63523#9/25
2023/12/45:78943#6/25
注:经验值超过100K时使用K做单位,超过1000K时使用M做单位,精确到两位小数。#x/xx使用
code
的原因是会与issues链接冲突,用于插件中时不需要。
{"guild":{"id":"公会id(简单理解为Hypixel的识别码就行)","name":"公会名字","name_lower":"名字小写","created":"公会创建的unix时间戳","members(成员列表}":[{"uuid":"成员的MCUUID(建议通过MOJANGAPI转为name后显示)","rank":"成员在公会的职位","joined":"加入公会的unix时间戳","questParticipation":"该成员完成的任务(公会->每周公会任务中,该成员为这个任务做出的贡献,只需完成挑战就能增加)","expHistory":"最近7天内该成员为公会获得的经验"}],"ranks":[{"name":"职位名称","default":"默认职位","tag":"该职位的tag,会在公会消息后显示","created":"该职位的创建时间","priority":"职位优先级,会在被提拔时依次提升"}],"description":"公会描述","achievements(公会成就)":{"ONLINE_PLAYERS":"最高同时在线人数","EXPERIENCE_KINGS":"一天时间最高获得的经验","WINNERS":"似乎是胜利过多少次游戏(还不确定)"},"exp":"公会总经验,可以以此计算等级","preferredGames":["公会主打游戏"],"tag":"公会标签,在此公会中的玩家会在玩家列表(Tab)和名字后面显示","tagColor":"公会标签颜色","guildExpByGameType":{"公会通过各种游戏获取的经验":"是个列表,此处以原文显示即可"}}}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.