Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DIfferent sessions API to prevent ratelimits from Mojang? #230

Open
bobhenl opened this issue Aug 18, 2024 · 1 comment
Open

DIfferent sessions API to prevent ratelimits from Mojang? #230

bobhenl opened this issue Aug 18, 2024 · 1 comment

Comments

@bobhenl
Copy link

bobhenl commented Aug 18, 2024

Hello, I'm getting ratelimited & I noticed that InteractiveChat is very often calling the sessions mojang API, maybe it can be replaced by another one? Not sure what it uses, but here are some alternatives:

Sat Aug 17 21:34:36 UTC 2024: Intercepted connection to sessionserver.mojang.com by plugin InteractiveChat
	at InteractiveChat-4.2.12.0.jar//com.loohp.interactivechat.utils.HTTPRequestUtils.getTextResponse(HTTPRequestUtils.java:74) [InteractiveChat]
	at InteractiveChat-4.2.12.0.jar//com.loohp.interactivechat.utils.HTTPRequestUtils.getJSONResponse(HTTPRequestUtils.java:50) [InteractiveChat]
	at InteractiveChat-4.2.12.0.jar//com.loohp.interactivechat.utils.SkinUtils.getSkinURLFromUUID(SkinUtils.java:83) [InteractiveChat]
	at InteractiveChatDiscordSrvAddon-4.2.12.0-1723901941308.jar//com.loohp.interactivechatdiscordsrvaddon.InteractiveChatDiscordSrvAddon.cachePlayerSkin(InteractiveChatDiscordSrvAddon.java:418) [InteractiveChatDiscordSrvAddon]
	at InteractiveChatDiscordSrvAddon-4.2.12.0-1723901941308.jar//com.loohp.interactivechatdiscordsrvaddon.InteractiveChatDiscordSrvAddon.lambda$onEnable$3(InteractiveChatDiscordSrvAddon.java:386) [InteractiveChatDiscordSrvAddon]
	at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:86)
	at org.bukkit.craftbukkit.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57)
	at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)

https://eclipse.skinsrestorer.net/mojang/uuid/Pistonmaster
https://eclipse.skinsrestorer.net/mojang/skin/b1ae0778-4817-436c-96a3-a72c67cda060

https://eclipse.skinsrestorer.net/docs/

I believe it should be good, better than the Ashcon one https://api.ashcon.app/mojang/v2/user/

https://crafatar.com/skins/UUID
https://api.mineskin.org/generate/user/UUID

not sure why you all it, if it's due to heads, then maybe mineskin or so can be used instead?

Maybe there can be at least a way to change the API in config?

@bobhenl
Copy link
Author

bobhenl commented Dec 21, 2024

Anything that can be done about this, please @LOOHP ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant