1. Вы находитесь в сообществе Rubukkit. Мы - администраторы серверов Minecraft, разрабатываем собственные плагины и переводим на различные языки плагины наших коллег из других стран.
    Скрыть объявление
Скрыть объявление
В преддверии глобального обновления, мы проводим исследования, которые помогут нам сделать опыт пользования форумом ещё удобнее. Помогите нам, примите участие!

Помогите LimboAuth Social Addon - Не работает последняя стадия привязки

Тема в разделе "Помощь", создана пользователем pupssladkiy, 2 дек 2023.

Статус темы:
Закрыта.
  1. Автор темы
    pupssladkiy

    pupssladkiy Новичок

    Баллы:
    6
    Под последним я имею ввиду, типо когда просит отправить /addsocial 12345678 и и т.д для привязки.

    Использую в качестве всех этих дел телеграм, в чат пишет "Во время выполнения этой команды произошла ошибка", а в консоли следующее:



    Код:
    [16:35:37 INFO]: Exception occurred while running command for pupssladkiy
    
    java.util.concurrent.CompletionException: java.lang.RuntimeException: Unable to invoke command addsocial 3141537 for [connected player] pupssladkiy (/95.25.195.65:26048)
    
    at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314) ~[?:?]
    
    at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319) ~[?:?]
    
    at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1766) ~[?:?]
    
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) ~[?:?]
    
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) ~[?:?]
    
    at java.lang.Thread.run(Thread.java:831) [?:?]
    
    Caused by: java.lang.RuntimeException: Unable to invoke command addsocial 3141537 for [connected player] pupssladkiy (/95.25.195.65:26048)
    
    at com.velocitypowered.proxy.command.VelocityCommandManager.executeImmediately0(VelocityCommandManager.java:239) ~[velocity-3.2.0-SNAPSHOT-294.jar:3.2.0-SNAPSHOT (git-8dcc7ee3-b294)]
    
    at com.velocitypowered.proxy.command.VelocityCommandManager.lambda$executeImmediatelyAsync$1(VelocityCommandManager.java:264) ~[velocity-3.2.0-SNAPSHOT-294.jar:3.2.0-SNAPSHOT (git-8dcc7ee3-b294)]
    
    at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1764) ~[?:?]
    
    ... 3 more
    
    Caused by: java.lang.NullPointerException: Cannot invoke "java.util.List.forEach(java.util.function.Consumer)" because "net.elytrium.limboauth.socialaddon.Settings.IMP.MAIN.AFTER_LINKAGE_COMMANDS" is null
    
    at net.elytrium.limboauth.socialaddon.Addon.linkSocial(Addon.java:624) ~[?:?]
    
    at net.elytrium.limboauth.socialaddon.command.ValidateLinkCommand.execute(ValidateLinkCommand.java:55) ~[?:?]
    
    at net.elytrium.limboauth.socialaddon.command.ValidateLinkCommand.execute(ValidateLinkCommand.java:30) ~[?:?]
    
    at com.velocitypowered.proxy.command.registrar.InvocableCommandRegistrar.lambda$createLiteral$1(InvocableCommandRegistrar.java:81) ~[velocity-3.2.0-SNAPSHOT-294.jar:3.2.0-SNAPSHOT (git-8dcc7ee3-b294)]
    
    at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:262) ~[velocity-3.2.0-SNAPSHOT-294.jar:3.2.0-SNAPSHOT (git-8dcc7ee3-b294)]
    
    at com.velocitypowered.proxy.command.VelocityCommandManager.executeImmediately0(VelocityCommandManager.java:226) ~[velocity-3.2.0-SNAPSHOT-294.jar:3.2.0-SNAPSHOT (git-8dcc7ee3-b294)]
    
    at com.velocitypowered.proxy.command.VelocityCommandManager.lambda$executeImmediatelyAsync$1(VelocityCommandManager.java:264) ~[velocity-3.2.0-SNAPSHOT-294.jar:3.2.0-SNAPSHOT (git-8dcc7ee3-b294)]
    
    at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1764) ~[?:?]
    
    ... 3 more
    
    Также можете чекнуть конфиг, через yaml validator пробивал и все норм было:

    Код:
    version: "1.0.10"
    # Available serializers:
    # LEGACY_AMPERSAND - "&c&lExample &c&9Text".
    # LEGACY_SECTION - "§c§lExample §c§9Text".
    # MINIMESSAGE - "<bold><red>Example</red> <blue>Text</blue></bold>". (https://webui.adventure.kyori.net/)
    # GSON - "[{"text":"Example","bold":true,"color":"red"},{"text":" ","bold":true},{"text":"Text","bold":true,"color":"blue"}]". (https://minecraft.tools/en/json_text.php/)
    # GSON_COLOR_DOWNSAMPLING - Same as GSON, but uses downsampling.
    serializer: LEGACY_AMPERSAND
    prefix: "&e2FA &7>>> "
    
    main:
      social-register-cmds:
        - "!account register"
      social-link-cmds:
        - "!account link"
      force-keyboard-cmds:
        - "!keyboard"
      code-lower-bound: 1000000
      code-upper-bound: 10000000
      linkage-main-cmd: "addsocial"
      linkage-alias-cmd:
        - "addtg"
      force-unlink-main-cmd: "forcesocialunlink"
      force-unlink-alias-cmd:
        - "forceunlink"
      # Should we allow registration with premium usernames using social-register-cmds
      allow-premium-names-registration: false
      enable-notify: true
      # Will the unlink button unregister all socials at once?
      unlink-btn-all: false
      # Disable unlinking?
      disable-unlink: false
      # Disable commands like !account link <username>
      disable-link-without-password: false
      # Disable commands like !account link <username> <password>
      disable-link-with-password: true
      # Default buttons state
      default-blocked: false
      default-totp-enabled: false
      default-notify-enabled: true
      # Allow linking social to the player, who already has linked this type of social
      allow-account-relink: true
      after-linkage-commands: null
      after-unlinkage-commands: []
      start-messages:
        - "/start"
        - "Начать"
      start-reply: "Отправь мне '!account link <ваш ник>' что-бы привязать свой аккаунт!"
      # Addon will print all exceptions if this parameter is set to true.
      debug: false
      # Prohibit premium users from changing their password via the restore button.
      prohibit-premium-restore: true
      # NO | YES - with the option disabled
      # YES | NO - with the option enabled
      reverse-yes-no-buttons: false
      # false - players with social 2FA enabled should enter the password
      # true - players with social 2FA enabled can login without the password
      auth-2fa-without-password: false
      # How long in milliseconds the player should wait before registering new account
      purge-registration-cache-millis: 86400000
      # How many accounts can register the player per time (per purge-registration-cache-millis)
      max-registration-count-per-time: 3
      vk:
        enabled: false
        token: "1234567890"
      discord:
        enabled: false
        token: "413214231414234231"
        # Available:
        # addrole <role id>
        # remrole <role id>
        #
        # Example:
        # on-player-added:
        #  - addrole 12345678
        # on-player-removed:
        #  - remrole 12345678
        on-player-added: []
        on-player-removed: []
        activity-enabled: true
        # Available values: PLAYING, STREAMING, LISTENING, WATCHING, COMPETING
        activity-type: PLAYING
        # Activity URL. Supported only with activity-type: STREAMING
        activity-url: "null"
        activity-name: "Привязывает свой аккаунт в майнкрафте"
        # Which role ids a player must have on the Discord server to use the bot
        #
        # Example:
        # required-roles:
        #  - 1234567890
        required-roles: []
        # It's better to keep this option enabled if you have set required-roles config option
        # Requires SERVER MEMBERS INTENT to be enabled in the bot settings on the Discord Developer Portal
        guild-member-cache-enabled: false
        no-roles-message: "У вас нету прав"
      telegram:
        enabled: true
        token: ""
      # GeoIP is an offline database providing approximate IP address locations
      # In the SocialAddon's case, the IP location is displayed in notifications and alerts
      geoip:
        enabled: false
        # Available placeholders: {CITY}, {COUNTRY}, {LEAST_SPECIFIC_SUBDIVISION}, {MOST_SPECIFIC_SUBDIVISION}
        format: "{CITY}, {COUNTRY}"
        # ISO 639-1
        locale: "en"
        # MaxMind license key
        # Regenerate if triggers an error
        license-key: "P5g0fVdAQIq8yQau"
        # The interval at which the database will be updated, in milliseconds
        # Default value: 14 days
        update-interval: 1209600000
        default-value: "Unknown"
        # It is not necessary to change {LICENSE_KEY}
        mmdb-city-download: "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key={LICENSE_KEY}&suffix=tar.gz"
        mmdb-country-download: "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country&license_key={LICENSE_KEY}&suffix=tar.gz"
      strings:
        link-cmd-usage: "{NL}&bДля привязки аккаунта:{NL}&a1. &fНайдите в телеграмме бота по юзернейму &b@beepvp_bot. &fСсылка: &bhttps://t.me/beepvp_bot {NL}&a2. &fНажмите &bначать &fили напишите &b/start, &fа после напишите !account link {NICKNAME}{NL}&a3. &fОжидайте остальных инструкций.{NL}"
        link-wrong-code: "&cНеправильный код, напишите !account link {NICKNAME} еще раз"
        link-success-game: "&aВы успешно привязали аккаунт!"
        link-success: "✅ Вы успешно привязали аккаунт! {NL}Используйте !keyboard чтобы показать клавиатуру"
        link-already: "Аккаунт уже привязан"
        link-social-register-cmd-usage: "Вы не указали никнейм. !account register <никнейм>"
        link-social-cmd-usage: "Вы не указали никнейм. '!account register <никнейм>'"
        link-unknown-account: "Нету аккаунтов с таким никнеймом"
        link-code: " Введите /addsocial {CODE} в игре чтобы завершить привязку"
        link-wrong-password: "Неправильный пароль"
        register-incorrect-nickname: "Нету аккаунтов с таким никнеймом"
        register-taken-nickname: "Этот никнейм уже привязан"
        register-premium-nickname: "This nickname belongs to a premium player"
        register-limit: "You've tried to registered numerous times!"
        register-success: "✅ Аккаунт успешно зарегистрирован! {NL}Ваш пароль {PASSWORD}{NL}Используйте !keyboard чтобы показать клавиатуру"
        force-unlink-cmd-usage: "{PRFX} Usage: /forcesocialunregister <username>"
        notify-leave: "➖ Вы вышли с сервера"
        notify-join: "➕ Вы зашли на сервер {NL} IP: {IP} {LOCATION}{NL}Вы можете заблокировать аккаунт если это были не вы"
        notify-ask-kick-message: "{PRFX} Вы кикнуты из игры привязкой к дискорду"
        notify-ask-validate: "❔ Кто то старается зайти на сервер, это вы? {NL} IP: {IP} {LOCATION}{NL}"
        notify-ask-validate-game: "{PRFX} У вас включена двухэтапная аунтентификация, подтвердите вход в дискорде"
        notify-ask-yes: "Это я"
        notify-ask-no: "Это не я"
        notify-thanks: "Спасибо за верификацию"
        notify-warn: "Вы всегда можете изменить свой пароль используя кнопку Восстановить"
        block-toggle-btn: "Включить блокировку"
        block-kick-message: "{PRFX} Ваш аккаунт заблокирован привязкой"
        block-success: "Аккаунт {NICKNAME} заблокирован успешно"
        unblock-success: "Аккаунт {NICKNAME} разблокирован успешно"
        totp-enable-success: "Аккаунт {NICKNAME} теперь использует 2FA"
        totp-disable-success: "Аккаунт {NICKNAME} теперь не использует 2FA "
        notify-enable-success: "Аккаунт {NICKNAME} теперь получает уведомления"
        notify-disable-success: "Аккаунт {NICKNAME} больше не получает уведомления"
        kick-is-offline: "Не могу выгнать игрока - он уже вышел"
        kick-success: "Игрок {NICKNAME} успешно кикнут"
        kick-game-message: "{PRFX} Вы кикнуты приявзкой"
        restore-btn: "Восстановить"
        restore-msg: "Новый пароль для {NICKNAME} теперь {PASSWORD}"
        restore-msg-premium: "We can't change your password, {NICKNAME}, perhaps you are a premium player."
        info-btn: "Инфо"
        info-msg: " Никнейм: {NICKNAME}{NL} Статус: {SERVER}{NL} IP: {IP} {LOCATION}{NL}⏰ Уведомления: {NOTIFY_STATUS}{NL}❌ Заблокирован: {BLOCK_STATUS}{NL} 2FA: {TOTP_STATUS}"
        status-offline: "Офлайн"
        notify-enabled: "Включены"
        notify-disabled: "Выключены"
        block-enabled: "Да"
        block-disabled: "Нет"
        totp-enabled: "Включено"
        totp-disabled: "Выключено"
        kick-btn: "Кикнуть"
        toggle-notification-btn: "Включить/выключить уведомления"
        toggle-2fa-btn: "Включить/выключить 2FA"
        unlink-btn: "Отвязать привязку"
        unlink-disabled: "Unlinking disabled"
        unlink-success: "Unlink successful"
        unlink-success-game: "{PRFX} Unlink successful"
        unlink-block-conflict: "You cannot unlink the social while your account is blocked. Unblock it first"
        unlink-2fa-conflict: "You cannot unlink the social while 2FA is enabled. Disable it first"
        keyboard-restored: "Keyboard was restored"
        # This message will be sent to the players without social-link right after their login
        link-announcement: "{NL}&c&l⚠⚠ &fЭй! &eПривяжи свой аккаунт к соц. сети, или {NL}&c&l⚠⚠ &fтебя смогут взломать, и если взломают, то {NL}&c&l⚠⚠ &fвосстановление аккаунта будет стоить денег! {NL}&c&l⚠⚠ &fПЕРЕЙТИ К ПРИВЯЗКЕ: &a&l/addsocial"
        social-exception-caught: "An exception occurred while processing your request"
    
     

    Вложения:

  2. Автор темы
    pupssladkiy

    pupssladkiy Новичок

    Баллы:
    6
  3. Автор темы
    pupssladkiy

    pupssladkiy Новичок

    Баллы:
    6
Статус темы:
Закрыта.

Поделиться этой страницей