Coder Social home page Coder Social logo

elytrium / limboauth-socialaddon Goto Github PK

View Code? Open in Web Editor NEW
37.0 37.0 13.0 192 KB

Now it is possible to link your social networks to your Minecraft account!

License: GNU Affero General Public License v3.0

Java 100.00%
auth-plugin minecraft-plugin velocity-plugin

limboauth-socialaddon's People

Contributors

hevav avatar kforbro avatar mdxd44 avatar skywatcher2019 avatar souvlakis avatar usernugget avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

limboauth-socialaddon's Issues

[BUG]

Создал токен в вк группе, выдал ему все права, но даёт такую ошибку:
[19:43:49 ERROR] [net.elytrium.limboauth.socialaddon.thirdparty.com.vk.api.sdk.client.ApiRequest]: API error
net.elytrium.limboauth.socialaddon.thirdparty.com.vk.api.sdk.exceptions.ApiMessagesChatBotFeatureException: This is a chat bot feature, change this status in settings (912): This is a chat bot feature, change this status in settings
at net.elytrium.limboauth.socialaddon.thirdparty.com.vk.api.sdk.exceptions.ExceptionMapper.parseException(ExceptionMapper.java:338) ~[?:?]
at net.elytrium.limboauth.socialaddon.thirdparty.com.vk.api.sdk.client.ApiRequest.executeWithoutRetry(ApiRequest.java:104) ~[?:?]
at net.elytrium.limboauth.socialaddon.thirdparty.com.vk.api.sdk.client.ApiRequest.execute(ApiRequest.java:79) ~[?:?]
at net.elytrium.limboauth.socialaddon.social.VKSocial.sendMessage(VKSocial.java:192) ~[?:?]
at net.elytrium.limboauth.socialaddon.social.AbstractSocial.sendMessage(AbstractSocial.java:55) ~[?:?]
at net.elytrium.limboauth.socialaddon.SocialManager.lambda$broadcastMessage$15(SocialManager.java:171) ~[?:?]
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) ~[?:?]
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177) ~[?:?]
at java.util.LinkedList$LLSpliterator.forEachRemaining(LinkedList.java:1239) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?]
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) ~[?:?]
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497) ~[?:?]
at net.elytrium.limboauth.socialaddon.SocialManager.broadcastMessage(SocialManager.java:171) ~[?:?]
at net.elytrium.limboauth.socialaddon.Addon.lambda$load$0(Addon.java:291) ~[?:?]
at net.elytrium.limboauth.socialaddon.SocialManager.lambda$onMessageReceived$0(SocialManager.java:58) ~[?:?]
at java.lang.Iterable.forEach(Iterable.java:75) ~[?:?]
at net.elytrium.limboauth.socialaddon.SocialManager.onMessageReceived(SocialManager.java:56) ~[?:?]
at net.elytrium.limboauth.socialaddon.social.AbstractSocial.proceedMessage(AbstractSocial.java:35) ~[?:?]
at net.elytrium.limboauth.socialaddon.social.VKSocial.onMessageNew(VKSocial.java:215) ~[?:?]
at net.elytrium.limboauth.socialaddon.social.VKSocial.lambda$start$0(VKSocial.java:107) ~[?:?]
at java.util.ArrayList.forEach(ArrayList.java:1541) ~[?:?]
at net.elytrium.limboauth.socialaddon.social.VKSocial.lambda$start$1(VKSocial.java:99) ~[?:?]
at java.lang.Thread.run(Thread.java:834) [?:?]

[BUG] Команда !keyboard

Всё на последней версии.

Изменить в force-keyboard-cmd: "!keyboard" на force-keyboard-cmd: "!клавиатура"
После этого команда перестаёт работать.

[ENHANCEMENT] Different info-msg in offline

Describe the feature you'd like to have implemented
Ability to set different info-msg in online and in offline.

Is your feature request related to an existing problem? Please describe.
IP, geolocation, now in server is useless information when player is offline

Additional context
Now
image
After
image

[BUG] Вылетает как угодно

Вылетает как угодно, пробовал всё, и менял джаву даже.

> [02:20:20 ERROR]: Exception in thread "main" com.google.common.util.concurrent.E                                                                                                 xecutionError: com.google.common.util.concurrent.ExecutionError: java.lang.NoCla                                                                                                 ssDefFoundError: net/elytrium/limboauth/event/AuthPluginReloadEvent
> [02:20:20 ERROR]:       at com.google.common.cache.LocalCache$Segment.get(LocalC                                                                                                 ache.java:2049)
> [02:20:20 ERROR]:       at com.google.common.cache.LocalCache.get(LocalCache.jav                                                                                                 a:3951)
> [02:20:20 ERROR]:       at com.google.common.cache.LocalCache.getOrLoad(LocalCac                                                                                                 he.java:3974)
> [02:20:20 ERROR]:       at com.google.common.cache.LocalCache$LocalLoadingCache.                                                                                                 get(LocalCache.java:4935)
> [02:20:20 ERROR]:       at com.google.common.cache.LocalCache$LocalLoadingCache.                                                                                                 getUnchecked(LocalCache.java:4941)
> [02:20:20 ERROR]:       at com.google.inject.internal.FailableCache.get(Failable                                                                                                 Cache.java:54)
> [02:20:20 ERROR]:       at com.google.inject.internal.ConstructorInjectorStore.g                                                                                                 et(ConstructorInjectorStore.java:49)
> [02:20:20 ERROR]:       at com.google.inject.internal.ConstructorBindingImpl.ini                                                                                                 tialize(ConstructorBindingImpl.java:148)
> [02:20:20 ERROR]:       at com.google.inject.internal.InjectorImpl.initializeBin                                                                                                 ding(InjectorImpl.java:592)
> [02:20:20 ERROR]:       at com.google.inject.internal.AbstractBindingProcessor$P                                                                                                 rocessor.initializeBinding(AbstractBindingProcessor.java:176)
> [02:20:20 ERROR]:       at com.google.inject.internal.AbstractBindingProcessor$P                                                                                                 rocessor.lambda$scheduleInitialization$0(AbstractBindingProcessor.java:163)
> [02:20:20 ERROR]:       at com.google.inject.internal.ProcessedBindingData.initi                                                                                                 alizeBindings(ProcessedBindingData.java:49)
> [02:20:20 ERROR]:       at com.google.inject.internal.InternalInjectorCreator.in                                                                                                 itializeStatically(InternalInjectorCreator.java:126)
> [02:20:20 ERROR]:       at com.google.inject.internal.InternalInjectorCreator.bu                                                                                                 ild(InternalInjectorCreator.java:110)
> [02:20:20 ERROR]:       at com.google.inject.Guice.createInjector(Guice.java:87)
> [02:20:20 ERROR]:       at com.google.inject.Guice.createInjector(Guice.java:69)
> [02:20:20 ERROR]:       at com.google.inject.Guice.createInjector(Guice.java:59)
> [02:20:20 ERROR]:       at com.velocitypowered.proxy.plugin.loader.java.JavaPlug                                                                                                 inLoader.createPlugin(JavaPluginLoader.java:119)
> [02:20:20 ERROR]:       at com.velocitypowered.proxy.plugin.VelocityPluginManage                                                                                                 r.loadPlugins(VelocityPluginManager.java:151)
> [02:20:20 ERROR]:       at com.velocitypowered.proxy.VelocityServer.loadPlugins(                                                                                                 VelocityServer.java:324)
> [02:20:20 ERROR]:       at com.velocitypowered.proxy.VelocityServer.start(Veloci                                                                                                 tyServer.java:222)
> [02:20:20 ERROR]:       at com.velocitypowered.proxy.Velocity.main(Velocity.java                                                                                                 :64)
> [02:20:20 ERROR]: Caused by: com.google.common.util.concurrent.ExecutionError: j                                                                                                 ava.lang.NoClassDefFoundError: net/elytrium/limboauth/event/AuthPluginReloadEven                                                                                                 t
> [02:20:20 ERROR]:       at com.google.common.cache.LocalCache$Segment.get(LocalC                                                                                                 ache.java:2049)
> [02:20:20 ERROR]:       at com.google.common.cache.LocalCache.get(LocalCache.jav                                                                                                 a:3951)
> [02:20:20 ERROR]:       at com.google.common.cache.LocalCache.getOrLoad(LocalCac                                                                                                 he.java:3974)
> [02:20:20 ERROR]:       at com.google.common.cache.LocalCache$LocalLoadingCache.                                                                                                 get(LocalCache.java:4935)
> [02:20:20 ERROR]:       at com.google.common.cache.LocalCache$LocalLoadingCache.                                                                                                 getUnchecked(LocalCache.java:4941)
> [02:20:20 ERROR]:       at com.google.inject.internal.FailableCache.get(Failable                                                                                                 Cache.java:54)
> [02:20:20 ERROR]:       at com.google.inject.internal.MembersInjectorStore.get(M                                                                                                 embersInjectorStore.java:69)
> [02:20:20 ERROR]:       at com.google.inject.internal.ConstructorInjectorStore.c                                                                                                 reateConstructor(ConstructorInjectorStore.java:75)
> [02:20:20 ERROR]:       at com.google.inject.internal.ConstructorInjectorStore.a                                                                                                 ccess$000(ConstructorInjectorStore.java:30)
> [02:20:20 ERROR]:       at com.google.inject.internal.ConstructorInjectorStore$1                                                                                                 .create(ConstructorInjectorStore.java:38)
> [02:20:20 ERROR]:       at com.google.inject.internal.ConstructorInjectorStore$1                                                                                                 .create(ConstructorInjectorStore.java:34)
> [02:20:20 ERROR]:       at com.google.inject.internal.FailableCache$1.load(Faila                                                                                                 bleCache.java:43)
> [02:20:20 ERROR]:       at com.google.common.cache.LocalCache$LoadingValueRefere                                                                                                 nce.loadFuture(LocalCache.java:3529)
> [02:20:20 ERROR]:       at com.google.common.cache.LocalCache$Segment.loadSync(L                                                                                                 ocalCache.java:2278)
> [02:20:20 ERROR]:       at com.google.common.cache.LocalCache$Segment.lockedGetO                                                                                                 rLoad(LocalCache.java:2155)
> [02:20:20 ERROR]:       at com.google.common.cache.LocalCache$Segment.get(LocalC                                                                                                 ache.java:2045)
> [02:20:20 ERROR]:       ... 21 more
> [02:20:20 ERROR]: Caused by: java.lang.NoClassDefFoundError: net/elytrium/limboa                                                                                                 uth/event/AuthPluginReloadEvent
> [02:20:20 ERROR]:       at java.base/java.lang.Class.getDeclaredMethods0(Native                                                                                                  Method)
> [02:20:20 ERROR]:       at java.base/java.lang.Class.privateGetDeclaredMethods(C                                                                                                 lass.java:3334)
> [02:20:20 ERROR]:       at java.base/java.lang.Class.getDeclaredMethods(Class.ja                                                                                                 va:2446)
> [02:20:20 ERROR]:       at com.google.inject.internal.DeclaredMembers.getDeclare                                                                                                 dMethods(DeclaredMembers.java:48)
> [02:20:20 ERROR]:       at com.google.inject.spi.InjectionPoint.getDeclaredMetho                                                                                                 ds(InjectionPoint.java:804)
> [02:20:20 ERROR]:       at com.google.inject.spi.InjectionPoint.getInjectionPoin                                                                                                 ts(InjectionPoint.java:723)
> [02:20:20 ERROR]:       at com.google.inject.spi.InjectionPoint.forInstanceMetho                                                                                                 dsAndFields(InjectionPoint.java:423)
> [02:20:20 ERROR]:       at com.google.inject.internal.MembersInjectorStore.creat                                                                                                 eWithListeners(MembersInjectorStore.java:92)
> [02:20:20 ERROR]:       at com.google.inject.internal.MembersInjectorStore.acces                                                                                                 s$000(MembersInjectorStore.java:40)
> [02:20:20 ERROR]:       at com.google.inject.internal.MembersInjectorStore$1.cre                                                                                                 ate(MembersInjectorStore.java:49)
> [02:20:20 ERROR]:       at com.google.inject.internal.MembersInjectorStore$1.cre                                                                                                 ate(MembersInjectorStore.java:45)
> [02:20:20 ERROR]:       at com.google.inject.internal.FailableCache$1.load(Faila                                                                                                 bleCache.java:43)
> [02:20:20 ERROR]:       at com.google.common.cache.LocalCache$LoadingValueRefere                                                                                                 nce.loadFuture(LocalCache.java:3529)
> [02:20:20 ERROR]:       at com.google.common.cache.LocalCache$Segment.loadSync(L                                                                                                 ocalCache.java:2278)
> [02:20:20 ERROR]:       at com.google.common.cache.LocalCache$Segment.lockedGetO                                                                                                 rLoad(LocalCache.java:2155)
> [02:20:20 ERROR]:       at com.google.common.cache.LocalCache$Segment.get(LocalC                                                                                                 ache.java:2045)
> [02:20:20 ERROR]:       ... 36 more
> [02:20:20 ERROR]: Caused by: java.lang.ClassNotFoundException: net.elytrium.limb                                                                                                 oauth.event.AuthPluginReloadEvent
> [02:20:20 ERROR]:       at com.velocitypowered.proxy.plugin.PluginClassLoader.lo                                                                                                 adClass0(PluginClassLoader.java:83)
> [02:20:20 ERROR]:       at com.velocitypowered.proxy.plugin.PluginClassLoader.lo                                                                                                 adClass(PluginClassLoader.java:60)
> [02:20:20 ERROR]:       at java.base/java.lang.ClassLoader.loadClass(ClassLoader                                                                                                 .java:519)
> [02:20:20 ERROR]:       ... 52 more
> [02:20:20 ERROR]:       at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:126)
> [02:20:20 ERROR]:       at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:110)
> [02:20:20 ERROR]:       at com.google.inject.Guice.createInjector(Guice.java:87)
> [02:20:20 ERROR]:       at com.google.inject.Guice.createInjector(Guice.java:69)
> [02:20:20 ERROR]:       at com.google.inject.Guice.createInjector(Guice.java:59)
> [02:20:20 ERROR]:       at com.velocitypowered.proxy.plugin.loader.java.JavaPluginLoader.createPlugin(JavaPluginLoader.java:119)
> [02:20:20 ERROR]:       at com.velocitypowered.proxy.plugin.VelocityPluginManager.loadPlugins(VelocityPluginManager.java:151)
> [02:20:20 ERROR]:       at com.velocitypowered.proxy.VelocityServer.loadPlugins(VelocityServer.java:324)
> [02:20:20 ERROR]:       at com.velocitypowered.proxy.VelocityServer.start(VelocityServer.java:222)
> [02:20:20 ERROR]:       at com.velocitypowered.proxy.Velocity.main(Velocity.java:64)
> [02:20:20 ERROR]: Caused by: com.google.common.util.concurrent.ExecutionError: java.lang.NoClassDefFoundError: net/elytrium/limboauth/event/AuthPluginReloadEvent
> [02:20:20 ERROR]:       at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2049)
> [02:20:20 ERROR]:       at com.google.common.cache.LocalCache.get(LocalCache.java:3951)
> [02:20:20 ERROR]:       at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3974)
> [02:20:20 ERROR]:       at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4935)
> [02:20:20 ERROR]:       at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4941)
> [02:20:20 ERROR]:       at com.google.inject.internal.FailableCache.get(FailableCache.java:54)
> [02:20:20 ERROR]:       at com.google.inject.internal.MembersInjectorStore.get(MembersInjectorStore.java:69)
> [02:20:20 ERROR]:       at com.google.inject.internal.ConstructorInjectorStore.createConstructor(ConstructorInjectorStore.java:75)
> [02:20:20 ERROR]:       at com.google.inject.internal.ConstructorInjectorStore.access$000(ConstructorInjectorStore.java:30)
> [02:20:20 ERROR]:       at com.google.inject.internal.ConstructorInjectorStore$1.create(ConstructorInjectorStore.java:38)
> [02:20:20 ERROR]:       at com.google.inject.internal.ConstructorInjectorStore$1.create(ConstructorInjectorStore.java:34)
> [02:20:20 ERROR]:       at com.google.inject.internal.FailableCache$1.load(FailableCache.java:43)
> [02:20:20 ERROR]:       at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3529)
> [02:20:20 ERROR]:       at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2278)
> [02:20:20 ERROR]:       at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2155)
> [02:20:20 ERROR]:       at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2045)
> [02:20:20 ERROR]:       ... 21 more
> [02:20:20 ERROR]: Caused by: java.lang.NoClassDefFoundError: net/elytrium/limboauth/event/AuthPluginReloadEvent
> [02:20:20 ERROR]:       at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
> [02:20:20 ERROR]:       at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3334)
> [02:20:20 ERROR]:       at java.base/java.lang.Class.getDeclaredMethods(Class.java:2446)
> [02:20:20 ERROR]:       at com.google.inject.internal.DeclaredMembers.getDeclaredMethods(DeclaredMembers.java:48)
> [02:20:20 ERROR]:       at com.google.inject.spi.InjectionPoint.getDeclaredMethods(InjectionPoint.java:804)
> [02:20:20 ERROR]:       at com.google.inject.spi.InjectionPoint.getInjectionPoints(InjectionPoint.java:723)
> [02:20:20 ERROR]:       at com.google.inject.spi.InjectionPoint.forInstanceMethodsAndFields(InjectionPoint.java:423)
> [02:20:20 ERROR]:       at com.google.inject.internal.MembersInjectorStore.createWithListeners(MembersInjectorStore.java:92)
> [02:20:20 ERROR]:       at com.google.inject.internal.MembersInjectorStore.access$000(MembersInjectorStore.java:40)
> [02:20:20 ERROR]:       at com.google.inject.internal.MembersInjectorStore$1.create(MembersInjectorStore.java:49)
> [02:20:20 ERROR]:       at com.google.inject.internal.MembersInjectorStore$1.create(MembersInjectorStore.java:45)
> [02:20:20 ERROR]:       at com.google.inject.internal.FailableCache$1.load(FailableCache.java:43)
> [02:20:20 ERROR]:       at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3529)
> [02:20:20 ERROR]:       at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2278)
> [02:20:20 ERROR]:       at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2155)
> [02:20:20 ERROR]:       at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2045)
> [02:20:20 ERROR]:       ... 36 more
> [02:20:20 ERROR]: Caused by: java.lang.ClassNotFoundException: net.elytrium.limboauth.event.AuthPluginReloadEvent
> [02:20:20 ERROR]:       at com.velocitypowered.proxy.plugin.PluginClassLoader.loadClass0(PluginClassLoader.java:83)
> [02:20:20 ERROR]:       at com.velocitypowered.proxy.plugin.PluginClassLoader.loadClass(PluginClassLoader.java:60)
> [02:20:20 ERROR]:       at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:519)
> [02:20:20 ERROR]:       ... 52 more

Использую jdk 16, velocity 3.1.1

vk links errors [BUG]

Describe the bug
при высоком онлайне возникают проблемы с модулем ВКонтакте.
with high online, problems arise with the VKontakte module.

To Reproduce

  1. на сервере должно играть больше 20-30 игроков
  2. пишем боту команду !привязать ник
  3. бот не отвечает (иногда появляется ошибка в консоле https://pastebin.com/PVp2HAtc )
  4. more than 20-30 players should play on the server
  5. write a command to the bot !привязать nickname
  6. the bot does not respond (sometimes an error appears in the console https://pastebin.com/PVp2HAtc )

Expected behavior
Бот присылает команду привязки
The bot sends a binding command

Screenshots
https://i.imgur.com/8ARAJwE.png

Server Info (please complete the following information):

  • limboauth-1.0.5-jdk17 (spigotmc.org)
  • LimboAuth.Social.Addon-1.0.1-jdk17 (spigotmc.org)
  • limboapi-plugin-1.0.5-jdk17 (spigotmc.org)

https://dump.velocitypowered.com/ezuhigovar.json

Additional context
Игроки попросту не могут привязать аккаунт к ВК, но в то же время, те кто успел привязать аккаунт - им приходят уведомления.
Так же парой плохо работает и двух этапная авторизация через вк, не каждый пользователь может подтвердить вход.

Players simply cannot link an account to the VK, but at the same time, those who managed to link an account - they receive notifications.
Also, sometimes two-stage authorization via VK does not work well, not every user can confirm the login.

[ENHANCEMENT] Delete link message with password

Добавьте удаление сообщения о привязке, если:

disable-link-without-password: true disable-link-with-password: false

Команда проекта у некоторых (как у нас) может иметь доступ к сообщениям группы для ответов игрокам и они видят пароли. Стоило бы удалять, если привязка происходит с паролем. vk.delete ().....

[ENHANCEMENT]

  1. Добавить возможность редактировать клавиатуру на подобии как у mcauth

[ENHANCEMENT] Region in main.geoip.format

Describe the feature you'd like to have implemented
Region in main.geoip.format so people from Kazan with format "{CITY}, {REGION}, {COUNTRY}" gets "Kazan, Tatarstan, Russia". As I know, mmdbs has this data.

Is your feature request related to an existing problem? Please describe.

  1. Cities with same name, like Athens in Ohio, Moscow in Idaho, Paris in Chelyabinsk Area
  2. "Simferopol, Crimea" looks better than "Simferopol".

Additional context
I don't think that this is important feature, so if this is hard, I think better to decline this idea.

[ENHANCEMENT] Aliases to servers

Describe the feature you'd like to have implemented
Aliases to servers, which can be changed by an admin, so if player in server "hub1", in social it's "Hub №1".

Is your feature request related to an existing problem? Please describe.

  1. "Hub №1" looks better than "hub1"
  2. Translating to other languages

Additional context
image

[ENHANCEMENT] Option to disable country showing

Describe the feature you'd like to have implemented
Option in main.geoip.precision to show only city without country ("Moscow, Russia" -> "Moscow")

Is your feature request related to an existing problem? Please describe.

  1. New laws in Russia, which forcing you to recognize Crimea and Kurils islands as parts of Russia
  2. Regions like Donetsk, Lugansk, where half of people supports Russia, half of people supports Ukraine

Additional context
Not required

[BUG]

Describe the bug
Repeats messages twice.

To Reproduce
Steps to reproduce the behavior:

  1. https://pastebin.com/8xPa8qi7
  2. https://pastebin.com/q64WnecK

Expected behavior
Sends a message once.

Screenshots
image

Server Info (please complete the following information):

[ENHANCEMENT] Add integration in DiscordSRV

Describe the feature you'd like to have implemented
Syncing the links with DiscordSRV, the sync feature of the Limbo plugin is easier to use than that of DiscordSRV

Is your feature request related to an existing problem? Please describe.
There is another Discord Plugin called DiscordSRV, it adds many features like syncing roles and proximity chat. At the moment you have to link the account in DiscordSRV by DMing the bot, users had problems with that and it could be added that the plugin syncs with DiscordSRV. The team behind DiscordSRV didn't do anything for over a year on their side to add such feature.

Additional context
grafik

[BUG] /addsocial causes an error

Describe the bug
Many players cannot link an account due to an error.
https://paste.ajg0702.us/9Le4JK6

To Reproduce
Steps to reproduce the behavior:

  1. send link message to Social
  2. enter /addsocial (code)

Expected behavior
No error and successful linking.

Server Info (please complete the following information):

[ENHANCEMENT] Some suggestions about 2FA and more config options.

Hello this plugin is perfect idea, I have some more suggestions about some config options:

  1. Config options to disable/remove discord buttons like toggle 2FA and others too.

  2. When a player adds social account, lets us choose in config if the 🔑 2FA: is enabled / disable, same for ⏰ Notifications,

  3. Session login time for 2FA or when the player change IP must verify the login (no each login)

Баг с ролью Discord

При on-player-removed у пользователя Discord не забирается роль
При on-player-added выдаёт роль корректно

on-player-added:
 - addrole 1098175110638223380
on-player-removed:
 - remrole 1098175110638223380

Авторизация последней версии

[BUG]

При активированной Discord привязке выдаёт ошибку на запуске

[13:27:03 ERROR]: Couldn't pass ProxyInitializeEvent to limboauth-social-addon
java.lang.NoSuchMethodError: org.apache.logging.slf4j.Log4jLoggerFactory: method 'void ()' not found
at org.slf4j.impl.StaticLoggerBinder.(StaticLoggerBinder.java:53) ~[?:?]
at org.slf4j.impl.StaticLoggerBinder.(StaticLoggerBinder.java:41) ~[?:?]
at java.lang.Class.forName0(Native Method) ~[?:?]
at java.lang.Class.forName(Class.java:375) ~[?:?]
at net.elytrium.limboauth.socialaddon.thirdparty.net.dv8tion.jda.internal.utils.JDALogger.(JDALogger.java:49) ~[?:?]
at net.elytrium.limboauth.socialaddon.thirdparty.net.dv8tion.jda.internal.entities.EntityBuilder.(EntityBuilder.java:78) ~[?:?]
at net.elytrium.limboauth.socialaddon.thirdparty.net.dv8tion.jda.api.entities.Activity.playing(Activity.java:129) ~[?:?]
at net.elytrium.limboauth.socialaddon.thirdparty.net.dv8tion.jda.api.entities.Activity.of(Activity.java:282) ~[?:?]
at net.elytrium.limboauth.socialaddon.social.DiscordSocial.start(DiscordSocial.java:65) ~[?:?]
at net.elytrium.limboauth.socialaddon.SocialManager.start(SocialManager.java:97) ~[?:?]
at net.elytrium.limboauth.socialaddon.Addon.load(Addon.java:177) ~[?:?]
at net.elytrium.limboauth.socialaddon.Addon.onReload(Addon.java:560) ~[?:?]
at net.elytrium.limboauth.socialaddon.Addon.onProxyInitialization(Addon.java:148) ~[?:?]
at net.elytrium.limboauth.socialaddon.Lmbda$12.execute(Unknown Source) ~[?:?]
at com.velocitypowered.proxy.event.UntargetedEventHandler$VoidHandler.lambda$buildHandler$0(UntargetedEventHandler.java:56) ~[velocity-3.2.0-SNAPSHOT-294.jar:3.2.0-SNAPSHOT (git-8dcc7ee3-b294)]
at com.velocitypowered.proxy.event.VelocityEventManager.fire(VelocityEventManager.java:597) ~[velocity-3.2.0-SNAPSHOT-294.jar:3.2.0-SNAPSHOT (git-8dcc7ee3-b294)]
at com.velocitypowered.proxy.event.VelocityEventManager.lambda$fire$5(VelocityEventManager.java:478) ~[velocity-3.2.0-SNAPSHOT-294.jar:3.2.0-SNAPSHOT (git-8dcc7ee3-b294)]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
at java.lang.Thread.run(Thread.java:840) [?:?]

Далее плагин просто не работает как нужно (не запрашивает 2FA нигде)
Данная ошибка воспроизводиться только с Discord (enabled: true). С включенным телеграмом и ВК ошибку не выдаёт.
Данная ошибка воспроизводиться на последней версии плагина LimboSocial
LimboApi, LimboFilter, LimboAuth - на сервере все последней версии под последний velocty (#294)
Ядро Velocity - #294

Ещё отмечу что на ранней версии Velocity и всех плагинов Limbo под билд до #265 такой ошибки не возникало

[BUG] Duplicating messages after /la reload

Describe the bug
Message is sending (count of /la reload) + 1 times

To Reproduce
Steps to reproduce the behavior:

  1. /la reload

Expected behavior
Message is sending once

Screenshots
image

Server Info (please complete the following information):

  • Limbo plugins latest version, velocity latest version

  • /velocity dump link [e.g. https://dump.velocitypowered.com/abcdef.json]

Additional context

[ENHANCEMENT] slash command support in discord server

Describe the feature you'd like to have implemented
players can run slash commands in the discord server.

should be specify a executor field in the command
send a message that only the performer can see. includes the code itself.
after finish binding. executor should also be able to use the slash command for other operations (2fa, kick, info, etc).

Another suggestion: provide a switch when players use it !keyboard, pop up the button again. every button perform will pop up that looks a bit like spam.

Is your feature request related to an existing problem? Please describe.
nope

Additional context
empty.

[BUG]

я хочу использовать балансировку нагрузки velocity, но limboauth socialaddon дает ошибки на двух velocity

[15:27:30 ERROR] [net.elytrium.limboauth.socialaddon.thirdparty.org.telegram.telegrambots.updatesreceivers.DefaultBotSession]: Error executing net.elytrium.limboauth.socialaddon.thirdparty.org.telegram.telegrambots.meta.api.methods.updates.GetUpdates query: [409] Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
net.elytrium.limboauth.socialaddon.thirdparty.org.telegram.telegrambots.meta.exceptions.TelegramApiRequestException: Error executing net.elytrium.limboauth.socialaddon.thirdparty.org.telegram.telegrambots.meta.api.methods.updates.GetUpdates query: [409] Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
at net.elytrium.limboauth.socialaddon.thirdparty.org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod.deserializeResponseInternal(PartialBotApiMethod.java:53) ~[?:?]
at net.elytrium.limboauth.socialaddon.thirdparty.org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod.deserializeResponseArray(PartialBotApiMethod.java:38) ~[?:?]
at net.elytrium.limboauth.socialaddon.thirdparty.org.telegram.telegrambots.meta.api.methods.updates.GetUpdates.deserializeResponse(GetUpdates.java:83) ~[?:?]
at net.elytrium.limboauth.socialaddon.thirdparty.org.telegram.telegrambots.updatesreceivers.DefaultBotSession$ReaderThread.getUpdatesFromServer(DefaultBotSession.java:260) ~[?:?]
at net.elytrium.limboauth.socialaddon.thirdparty.org.telegram.telegrambots.updatesreceivers.DefaultBotSession$ReaderThread.run(DefaultBotSession.java:189) ~[?:?]
[15:27:35 ERROR] [net.elytrium.limboauth.socialaddon.thirdparty.org.telegram.telegrambots.updatesreceivers.DefaultBotSession]: Error executing net.elytrium.limboauth.socialaddon.thirdparty.org.telegram.telegrambots.meta.api.methods.updates.GetUpdates query: [409] Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
net.elytrium.limboauth.socialaddon.thirdparty.org.telegram.telegrambots.meta.exceptions.TelegramApiRequestException: Error executing net.elytrium.limboauth.socialaddon.thirdparty.org.telegram.telegrambots.meta.api.methods.updates.GetUpdates query: [409] Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
at net.elytrium.limboauth.socialaddon.thirdparty.org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod.deserializeResponseInternal(PartialBotApiMethod.java:53) ~[?:?]
at net.elytrium.limboauth.socialaddon.thirdparty.org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod.deserializeResponseArray(PartialBotApiMethod.java:38) ~[?:?]
at net.elytrium.limboauth.socialaddon.thirdparty.org.telegram.telegrambots.meta.api.methods.updates.GetUpdates.deserializeResponse(GetUpdates.java:83) ~[?:?]
at net.elytrium.limboauth.socialaddon.thirdparty.org.telegram.telegrambots.updatesreceivers.DefaultBotSession$ReaderThread.getUpdatesFromServer(DefaultBotSession.java:260) ~[?:?]
at net.elytrium.limboauth.socialaddon.thirdparty.org.telegram.telegrambots.updatesreceivers.DefaultBotSession$ReaderThread.run(DefaultBotSession.java:189) ~[?:?]

[BUG] The plugin writes errors to the console, and the ping of the players rises

Describe the bug
Periodically, the plugin writes such errors to the console. after that, the ping increases for all players.

To Reproduce
No way. it just happens from time to time

Server Info (please complete the following information):

  • LimboAPI 1.1.0, downloaded from official github

  • LimboAuth 1.1.3, downloaded from official github

  • LimboAuth Social Addon 1.0.7, downloaded from official github

  • https://pastebin.com/NT3hfHTR

Additional context
https://pastebin.com/a2cfBLTD

[BUG] Couldn't pass ProxyInitializeEvent to limboauth-social-addon

When I start the server -> console tell me:
[06:52:10 ERROR]: Couldn't pass ProxyInitializeEvent to limboauth-social-addon
java.lang.IllegalArgumentException: connectionSource argument cannot be null
at net.elytrium.limboauth.thirdparty.com.j256.ormlite.dao.DaoManager.createDao(DaoManager.java:44) ~[?:?]
at net.elytrium.limboauth.thirdparty.com.j256.ormlite.table.TableUtils.createTableIfNotExists(TableUtils.java:73) ~[?:?]
at net.elytrium.limboauth.socialaddon.Addon.onReload(Addon.java:564) ~[?:?]
at net.elytrium.limboauth.socialaddon.Addon.onProxyInitialization(Addon.java:148) ~[?:?]
at net.elytrium.limboauth.socialaddon.Lmbda$4.execute(Unknown Source) ~[?:?]
at com.velocitypowered.proxy.event.UntargetedEventHandler$VoidHandler.lambda$buildHandler$0(UntargetedEventHandler.java:56) ~[velocity.jar:3.2.0-SNAPSHOT (git-93b6376b-b246)]
at com.velocitypowered.proxy.event.VelocityEventManager.fire(VelocityEventManager.java:598) ~[velocity.jar:3.2.0-SNAPSHOT (git-93b6376b-b246)]
at com.velocitypowered.proxy.event.VelocityEventManager.lambda$fire$5(VelocityEventManager.java:479) ~[velocity.jar:3.2.0-SNAPSHOT (git-93b6376b-b246)]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
at java.lang.Thread.run(Thread.java:833) [?:?]

Screen:
image

[BUG] LimboAuth-SocialAddon error

Describe the bug
I added the "LimboAuth-SocialAddon" plugin to my proxy server and connected it to the vk bot. After someone writes him a command, he writes this error to the console, and the bot does not respond.

Error
https://pastebin.com/CWFWQTw0

Server Info (please complete the following information):

  • All Limbo plugins versions:

  • [e.g. LimboAP-1.1.12, downloaded from https://github.com/Elytrium/LimboAPI/releases/]

  • [e.g. LimboAuth-SocialAddon-1.0.10, downloaded from https://github.com/Elytrium/LimboAuth-SocialAddon/releases/]

  • /velocity dump link [https://pastebin.com/48Q1UTrZ]

Не хотит запускатся

Я тупой, вот ошибка

Couldn't pass AuthPluginReloadEvent to limboauth-social-addon
java.lang.NoSuchMethodError: 'net.elytrium.java.commons.config.YamlConfig$LoadResult net.elytrium.limboauth.socialaddon.Settings.reload(java.io.File, java.lang.String)'
at net.elytrium.limboauth.socialaddon.Addon.reload(Addon.java:129) ~[?:?]
at net.elytrium.limboauth.socialaddon.Addon.onAuthReload(Addon.java:422) ~[?:?]
at net.elytrium.limboauth.socialaddon.Lmbda$6.execute(Unknown Source) ~[?:?]
at com.velocitypowered.proxy.event.UntargetedEventHandler$VoidHandler.lambda$buildHandler$0(UntargetedEventHandler.java:47) ~[Velocity.jar:3.1.2-SNAPSHOT (git-d59d4505-b133)]
at com.velocitypowered.proxy.event.VelocityEventManager.fire(VelocityEventManager.java:598) ~[Velocity.jar:3.1.2-SNAPSHOT (git-d59d4505-b133)]
at com.velocitypowered.proxy.event.VelocityEventManager.lambda$fire$5(VelocityEventManager.java:479) ~[Velocity.jar:3.1.2-SNAPSHOT (git-d59d4505-b133)]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
at java.lang.Thread.run(Thread.java:833) [?:?]

[ENHANCEMENT] Hiding brackets in geoip

Describe the feature you'd like to have implemented
Option to hide brackets in geoip format

Is your feature request related to an existing problem? Please describe.
For better view in phones

Before:
IP: 1.1.1.1 (USA)

After:
IP: 1.1.1.1
Location: USA

Additional context
image

[ENHANCEMENT] Дополнительный функционал

В момент подтверждения авторизации, после нажатия на кнопку Это я/Это не я, восстанавливать изначальную клавиатуру.

Если я подтвердил авторизацию через телеграмм, восстанавливать клавиатуру в VK, т.к. остаются 2 кнопки для подтверждения, хотя она уже пройдена.

plugin not starting

Couldn't pass AuthPluginReloadEvent to limboauth-social-addon
java.lang.NoSuchMethodError: 'net.elytrium.java.commons.config.YamlConfig$LoadResult net.elytrium.limboauth.socialaddon.Settings.reload(java.io.File, java.lang.String)'
at net.elytrium.limboauth.socialaddon.Addon.reload(Addon.java:129) ~[?:?]
at net.elytrium.limboauth.socialaddon.Addon.onAuthReload(Addon.java:422) ~[?:?]
at net.elytrium.limboauth.socialaddon.Lmbda$6.execute(Unknown Source) ~[?:?]
at com.velocitypowered.proxy.event.UntargetedEventHandler$VoidHandler.lambda$buildHandler$0(UntargetedEventHandler.java:47) ~[Velocity.jar:3.1.2-SNAPSHOT (git-d59d4505-b133)]
at com.velocitypowered.proxy.event.VelocityEventManager.fire(VelocityEventManager.java:598) ~[Velocity.jar:3.1.2-SNAPSHOT (git-d59d4505-b133)]
at com.velocitypowered.proxy.event.VelocityEventManager.lambda$fire$5(VelocityEventManager.java:479) ~[Velocity.jar:3.1.2-SNAPSHOT (git-d59d4505-b133)]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
at java.lang.Thread.run(Thread.java:833) [?:?]

[ENHANCEMENT]

Я не понимаю что за плагин, как он работает, как настраивать привязку к дискорду/вк/телеграмму

нужен минимальный гайд по настройке плагина
команды /addsocial /addtg /addvk не работают или (по крайней мере не отображают того чего ожидаешь)
Я хотел настроить хотя бы телеграмм бота, но как то и не получилось гайда просто нет, прописал
telegram:
enabled: true
token: "ввёл сюда токен"
и всё, тупо не знаю что и как сделать дальше
надеюсь когда нибудь это будет работать)))

[ENHANCEMENT] Configurable buttons

Hello! Is it possible to add configurable keyboard in discord/all paltforms?
I want to make only discrod 2fa autorization, but can't hide buttons like toggle 2fa and restore.
Thanks!

[BUG] VKAPI Error

When connecting some players (after updating the velocity to 266+), it began to give an error.

[00:23:49 ERROR] [net.elytrium.limboauth.socialaddon.thirdparty.com.vk.api.sdk.client.ApiRequest]: API error
net.elytrium.limboauth.socialaddon.thirdparty.com.vk.api.sdk.exceptions.ApiParamException: One of the parameters specified was missing or invalid (100): One of the parameters specified was missing or invalid: invalid event_id
        at net.elytrium.limboauth.socialaddon.thirdparty.com.vk.api.sdk.exceptions.ExceptionMapper.parseException(ExceptionMapper.java:118) ~[?:?]
        at net.elytrium.limboauth.socialaddon.thirdparty.com.vk.api.sdk.client.ApiRequest.executeWithoutRetry(ApiRequest.java:104) ~[?:?]
        at net.elytrium.limboauth.socialaddon.thirdparty.com.vk.api.sdk.client.ApiRequest.execute(ApiRequest.java:79) ~[?:?]
        at net.elytrium.limboauth.socialaddon.social.VKSocial.onMessageEvent(VKSocial.java:244) ~[?:?]
        at net.elytrium.limboauth.socialaddon.social.VKSocial.lambda$start$0(VKSocial.java:111) ~[?:?]
        at java.util.ArrayList.forEach(ArrayList.java:1511) ~[?:?]
        at net.elytrium.limboauth.socialaddon.social.VKSocial.lambda$start$1(VKSocial.java:99) ~[?:?]
        at java.lang.Thread.run(Thread.java:833) [?:?]
[00:23:49 ERROR]: net.elytrium.limboauth.socialaddon.thirdparty.com.vk.api.sdk.exceptions.ApiParamException: One of the parameters specified was missing or invalid (100): One of the parameters specified was missing or invalid: invalid event_id
[00:23:49 ERROR]:       at net.elytrium.limboauth.socialaddon.thirdparty.com.vk.api.sdk.exceptions.ExceptionMapper.parseException(ExceptionMapper.java:118)
[00:23:49 ERROR]:       at net.elytrium.limboauth.socialaddon.thirdparty.com.vk.api.sdk.client.ApiRequest.executeWithoutRetry(ApiRequest.java:104)
[00:23:49 ERROR]:       at net.elytrium.limboauth.socialaddon.thirdparty.com.vk.api.sdk.client.ApiRequest.execute(ApiRequest.java:79)
[00:23:49 ERROR]:       at net.elytrium.limboauth.socialaddon.social.VKSocial.onMessageEvent(VKSocial.java:244)
[00:23:49 ERROR]:       at net.elytrium.limboauth.socialaddon.social.VKSocial.lambda$start$0(VKSocial.java:111)
[00:23:49 ERROR]:       at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
[00:23:49 ERROR]:       at net.elytrium.limboauth.socialaddon.social.VKSocial.lambda$start$1(VKSocial.java:99)
[00:23:49 ERROR]:       at java.base/java.lang.Thread.run(Thread.java:833)

All plugins on velocity are of the latest versions, as is the velocity build itself.

[BUG] Console spam

Describe the bug
The console gets spammed with this: https://pastebin.com/d39mNxZ7
If the user is linked with Discord, and the bot cannot send a message to the user due to privacy settings.

To Reproduce
Steps to reproduce the behavior:

  1. Login with a linked account
  2. See console

Expected behavior
The plugin should be able to catch this issue, and send a message back to the player, notifying them about the problem.
Or, kick the player, and notifying them.

Server Info (please complete the following information):

  • Latest version as of currently, tho this has been happening for multiple versions.

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.