Coder Social home page Coder Social logo

practical-widgets's People

Contributors

jxmm52547 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

mc-luoluo glass20

practical-widgets's Issues

[BUG] "com.google.gson.JsonObject.get(String)" is null

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)

BUG和建议

  • Player下数据建议改为最后(上次登录->最后登录)

  • 上次注销时间改为最后退出时间

  • 大厅等级改为Hypixel等级

image

  • 今典模式(错别字)->经典模式

  • 感染模式下不应该写"总"

  • Duels模式快做(

  • Arcade缩写应为AC

  • 退群提醒功能不需要总开关,应该默认全部关闭,然后由admin用命令指定开启某群(或在配置文件中修改)

  • 重启会导致退群提醒功能自动开启(配置文件恢复为true)

  • 输入/hyp返回帮助菜单

  • MVP+及以上+的颜色

  • MVP++的Rank颜色(可以手动改成青色)

  • 主大厅钓鱼数(最好可以做一个单独的type获取各种鱼的数据)

  • YOUTUBE Rank

  • 在线状态(是否在线,在哪个大厅/游戏里)

  • Arc缺少心跳水立方

图片

  • BW胜率计算错误

  • 公会数据

对公会数据的建议

  1. 不需要列出所有公会成员,只需要写出 当前查询成员数据Guild Master的名字 即可。
  2. 公会方面的数据需要列出:
  • 公会名字
  • 公会会长
  • 公会成员数
  • 公会创建时间
  • 公会等级
  • 经验进度(例如:1.83/3M 61%)
  • 公会最高同时在线人数
  • 每日最高经验
  • 公会胜场数
  • 公会最近一周每天获取的经验及总和
  • 平均每位公会成员最近一天和一周获取的经验
  1. 对于查询成员数据,除了公会基础数据还需要列出查询的成员的以下数据:
  • 该成员的公会rank
  • 该成员加入公会的时间
  • 该成员完成了多少公会任务
  • 该成员最近一周每天获取的经及总和
  • 该成员最近一周每天获取的经验在该公会排多少名

例如在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":{"公会通过各种游戏获取的经验":"是个列表,此处以原文显示即可"}}}

Arcade games数据不完整

僵尸末日(zombies)分为3个地图,每个地图都有不同的数据,例如最佳回合数分为["best_round_zombies","best_round_zombies_deadend","best_round_zombies_alienarcadium"],但目前使用/hyp arc所得到的数据只写了其中一个
图片
图片
查询的uuid:ef6aa13fd11c4fc5a77f0b6ba7f26b10

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.