Сборки серверов

СливПлатные

Сейчас онлайн

  • rivneb1488
  • mgod1616
  • Lucik55
  • Door
  • kelw1n
  • minenex
  • euj3ne
  • valerchik123333
  • DNatsuD
  • Akaika
  • indywXyze
  • ZenWorld
  • booowieee
  • baloon4ik
  • jsgdjd
  • TenfaOficall
  • zeinov
  • sustrishkenbrff
  • MrMurkov
  • MyGoogle666
  • ElgerElg
  • anhembacki123
  • AlexDota
  • Romario1309
  • Sashadragon
  • jhqwq
  • Extr1se_
  • Humphrey
  • Affluent
  • malibard
  • des1ght_1
  • KameLiya
  • Darkmage366
  • Kyamich
  • rishu_kr09
  • Гиук
  • reclau
  • Scp_xz
  • Samus_here
  • Norsek
  • gamemode123
  • Kdxkjdjx
  • koldqp
  • Shawon12345
  • 13469100
  • GGGESHKA
  • TATA82
  • lolkek48481
  • Fergust
  • KILLER42
  • Make_Katana
  • SALIEVVS
  • FanstS
  • brain
  • volkraft12
  • l0calh0s1
  • yashiro
  • heybangsie
  • nocss
  • perdesh
  • 123123123я
  • dfqd112
  • w2mpu72
  • pnetwork
  • Tarekizor
  • orryxmane
  • khang3107
  • Katok777
  • pittt
  • Snon_S
  • kel87
  • Skye
  • yel
  • cumUsh3k
  • panda441
  • lqxnio
  • MortyPunk
  • Artemkar
  • sqworell
  • bnkfdl1eqwa
  • kirilltwice
  • zybnayapast
  • stlive
  • zarplayka777
  • Whiskas12
  • 12333
  • Konsheng
  • ErosS
  • krem_4iz
  • Oversouly
  • reallybreed80

Помощь Нужна помощь по плагину AdvancedAntiVPN

  • Автор темыsanek1108
  • Дата начала
sanek1108
Подскажите как убрать эту ошибку
Код:
[18:39:14 ERROR]: Could not pass event AsyncPlayerPreLoginEvent to AdvancedAntiVPN v2.23.0
java.lang.NullPointerException: Cannot invoke "dev.hexedhero.advancedantivpn.shared.shaded.hikari.HikariDataSource.getConnection()" because "this.hikari" is null
at dev.hexedhero.advancedantivpn.shared.database.MySQLConnector.getConnection(MySQLConnector.java:65) ~[AdvancedAntiVPN-2.23.0.jar:?]
at dev.hexedhero.advancedantivpn.shared.managers.DataManager.getIPInformation(DataManager.java:360) ~[AdvancedAntiVPN-2.23.0.jar:?]
at dev.hexedhero.advancedantivpn.shared.managers.ServiceManager.runLocalChecks(ServiceManager.java:112) ~[AdvancedAntiVPN-2.23.0.jar:?]
at dev.hexedhero.advancedantivpn.bukkit.listeners.PlayerListener.a(PlayerListener.java:46) ~[AdvancedAntiVPN-2.23.0.jar:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor134.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[pufferfish-api-1.20.2-R0.1-SNAPSHOT.jar:?]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:77) ~[pufferfish-api-1.20.2-R0.1-SNAPSHOT.jar:git-Pufferfish-34]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[pufferfish-api-1.20.2-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[pufferfish-1.20.2.jar:git-Pufferfish-34]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[pufferfish-1.20.2.jar:git-Pufferfish-34]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:617) ~[pufferfish-api-1.20.2-R0.1-SNAPSHOT.jar:?]
at net.minecraft.server.network.ServerLoginPacketListenerImpl$LoginHandler.fireEvents(ServerLoginPacketListenerImpl.java:348) ~[?:?]
at net.minecraft.server.network.ServerLoginPacketListenerImpl$1.run(ServerLoginPacketListenerImpl.java:196) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
at java.lang.Thread.run(Thread.java:1589) ~[?:?]
 
Последнее редактирование модератором:
Решение
sustrishkenbrff
@sanek1108, На первый взгляд, конфигурация выглядит корректной. Вероятно, возникла проблема при попытке установить соединение с базой данных MySQL. Проверьте настройки базы данных и удостоверьтесь, что они верны.
sustrishkenbrff
Возможно, при конфигурации HikariDataSource были допущены ошибки или указаны неверные параметры. Убедитесь, что параметры конфигурации (например, URL базы данных, имя пользователя, пароль) заданы корректно.
 
sanek1108
Код:
# Thank you for purchasing AdvancedAntiVPN and I hope you enjoy the plugin!
# If you have any issues please refer to the "HELP/HOW TO" on the plugin page below!
# Plugin page: https://www.spigotmc.org/resources/101081/
# Check for plugin updates on startup and every 24 hours?
Update Notify: true
# Enable debug mode for the plugin to see special
# things including raw data of connections.
# WARNING: This can print out alot of debugging
# info especially when checking services!
Debug Mode: false
# Change how data is saved/managed.
Database:
  # Valid settings are SQLITE (Local) or MYSQL (Remote)
  # If you're unsure what this is or don't have multiple servers, just leave these alone.
  Type: MYSQL
  # MySQL Settings
  IP: 123321
  Port: 3306
  # --- Make sure to create this database manually if not there ---
  Database: s168055_AntiVPN
  # Account that has access to read/write to the above database
  Username: u168055_gTwiefSXmB
  Password: ZmZqu190cC^fPnC80V@Un4=@
  # Highly recommend keeping this SSL (HTTPS) to true but your host may not allow it yet.
  SSL: true
  # Don't change unless you know exactly what this is, this is the maxmium amount of connections in the pool that there can be.
  Maximum Pool Size: 4
  # Timeout for each connection in seconds. I recommend no higher than 5 seconds but no lower than 1 second.
  Connection Timeout: 3.0
# How many services should detect the players IP
# to be a VPN/proxy to flag the player?
# This needs to be the same or lower than the
# amount of services enabled.
# This will trigger the enabled actions.
Flagged Threshold: 2
# Time to cache results in the database in hours.
# Put lower if you have enough queries to use from the services.
# Put higher if you don't have enough queries to use from the services.
# Recommended: 12-48
Cache Time: 36
# What actions to take when a player is flagged.
Actions:
  # Block the player from joining the server.
  Block:
    Enabled: true
    Message: "&cПожалуйста, отключитесь от VPN или прокси-сервера и подключитесь снова!"
  # Send a message to all players online with the permission "advancedantivpn.notify"
  Notify:
    Enabled: false
    Message: "&c&l%player_name%&c пытался присоединиться через VPN или прокси!"
  # Send a Discord message to your webhook.
  Discord Webhook:
    # See https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks on how to create and get your web hook URL.
    URL: ""
    Username: "ʟɪᴠᴇʀᴄʏ"
    Avatar: "[MEDIA=imgur]8UxeQOh[/MEDIA]"
    # Hex color
    Color: "#00FFFF"
    Title: "ʟɪᴠᴇʀᴄʏ"
    Thumbnail: "https://crafthead.net/cube/%uuid%"
    # Placeholders: %player_name%, %ip%, %date% & %time%.
    Description:
      - "%player_name% пытался присоединиться через VPN или прокси!"
      - ""
      - "Information:"
      - "IP: %ip%"
      - "Date: %date%"
      - "Time: %time%"
    # Placeholders: %plugin_version%.
    Footer: "ʟɪᴠᴇʀᴄʏ v%plugin_version%"
  # Execute a list of commands with or without a delay.
  Commands:
    # Delay in seconds, 0 to disable
    Delay: 0.25
    Commands:
      - "minecraft:say %player_name% присоединились с помощью VPN или прокси!"
      - "minecraft:teleport %player_name% 0 128 0"
# All the services that are supported by AdvancedAntiVPN.
# Please read each service's terms of service and privacy policy before using them.
Services:
  # IP-API.com - Geolocation API
  #
  # No Key: unlimited queries.
  IP-API:
  # Proxy & VPN Detection API | proxycheck.io (RECOMMENDED)
  # No Key: 100 daily queries.
  # Free Key 1,000 daily queries.
  # Paid Key: 10k-512m daily queries.
  # Get a free key here: pricing / proxycheck.io
  ProxyCheck:
    Key: "7m5141-533862-6zr029-5476j8" # Optional but you can get a free one
  # VPN & Proxy Detection API
  # Paid Key: 10k-200k daily queries.
  # Get a free key here: https://vpnapi.io/signup
  VPNAPI:
    Key: "" # Optional but you can get a free one
  # Proxy & VPN detection API - IPHub.info
  # Free Key: 1,000 daily queries.
  # Paid Key: 10k-600k+ daily queries.
  # Get a free key here: Proxy & VPN detection API - IPHub.info
  IPHub:
    Key: "" # Required but you can get a free one
    # Advanced settings for this service, only change if you understand these.
    Advanced:
      Block: 1
  # Free Proxy / VPN / TOR / Bad IP Detection via API and Web     Interface | IP Intelligence
  # Free: 500+ daily queries.
  # Paid: 500-Infinite daily queries.
  GetIPIntel:
    Email: "" # Required don't put a fake one or you'll get banned, sometimes instantly.
  # ⚡    Proxy & VPN Detection API - IPHunter⚡
  # Paid Key: 60k-50m daily queries.
  # Get a free key here: ⚡    Access to IPHunter⚡
  IPHunter:
  # Fraud Detection & Bot Detection Solutions | Detect Fraud with IPQS
  # Free Key: 5,000 monthly queries.
  # Paid Key: 50k-5m monthly queries.
  # Get a free key here: Create Your Account for IPQS Fraud Prevention | IPQualityScore.com
  IPQualityScore:
      Allow Public Access Points: false
      Mobile: false
      Fast: false
      Strictness: 0
      Lighter Penalties: true
    
# GeoLite2 is a free Geolocating service by MaxMind (GeoLite2 Sign Up  | MaxMind)
# to find the location of where an IP is, such as it's country.
GeoLite2:
  # Should GeoLite2 be enabled and check player's IP location?
  Enabled: false
 
  # Key for your MaxMind account to download/update the GeoLite2 database.
  # Get your free key from https://www.maxmind.com/en/accounts/current/license-key
  MaxMind Key: ""
  # How often to update the database in days.
  # Recommended: 14-31
  Update Period: 31.0
  # Should the country list be a whitelist or blacklist.
  Mode: WHITELIST
  # The list of countries to allow or block.
  # Format is Alpha-2 codes from List of ISO 3166 country codes - Wikipedia
  Countries:
    - "GB" # Great Britain
    - "US" # United States
  # The message that the player will get if their country is being blocked.
  Message: "&cSorry, we do not accept players from your country."
Aegis:
    # The action bar message to notify players with permission.
    Notify Message: "%heartbeat% &c&lAEGIS&c - &c&l%count% ЗАБЛОКИРОВАНО %heartbeat%"
    # The message that the player will get if Aegis is enabled and they attempt to join.
    Block Message: "&c&lAegis&c включен, повторите попытку позже!"
# Language used for the plugin
Language:
  # Prefix for player chat messages. Set to "" to disable.
  Prefix: "#fc54ffʟɪᴠᴇʀᴄʏ "
  # Player & console messages
  Command Usage:
    - "&a/AdvancedAntiVPN &7- &fПоказать версию плагина и лицензированного пользователя."
    - "&a/AdvancedAntiVPN Help &7- &fПоказать меню справки."
    - "&a/AdvancedAntiVPN Reload &7- &fПерезагрузка плагин."
    - "&a/AdvancedAntiVPN Stats &7- &fПоказывает статистику базы данных."
    - "&a/AdvancedAntiVPN Whitelist (Add/Remove) (IP) &7- &fДобавьте или удалите IP-адрес из белого списка."
    - "&a/AdvancedAntiVPN Blacklist (Add/Remove) (IP) &7- &fДобавление или удаление IP из черного списка."
    - "&a/AdvancedAntiVPN Purge &7- &fОчистите базу данных кэша."
    - "&a/AdvancedAntiVPN Test (IP) &7- &fПротестируйте IP-адрес и посмотрите результаты работы сервисов."
    - "&a/AdvancedAntiVPN Aegis enable/disable &7- &fВключите или выключите режим Aegis."
  Stats:
    - "&fСтатистика базы данных:"
    - "&b&l>&a &a&l%total% &aIP(s) находятся в базе данных."
    - "&b&l>&a &2&l%flagged% &2из них помечены."
    - "&b&l>&a &c&l%updated% из них находятся в пределах времени кэша."
    - "&b&l>&a &4&l%cache_flagged% &4из них в течение времени кэширования помечаются."
  Whitelist Command Usage: "&cИспользуйте: /AdvancedAntiVPN whitelist add/remove (IP)."
  Blacklist Command Usage: "&cИспользуйте: /AdvancedAntiVPN blacklist add/remove (IP)."
  Test Command Usage: "&cИспользуйте: /AdvancedAntiVPN test (IP) [Force]."
  Aegis Command Usage: "&cИспользуйте: /AdvancedAntiVPN aegis enable/disable."
  Already On Whitelist: "&c%ip% уже в белом списке!"
  Already On Blacklist: "&c%ip% уже в черном списке!"
  Added To Whitelist: "&aДобавлен %ip% в белый список."
  Added To Blacklist: "&aДобавлен %ip% в черный список"
  Not On Whitelist: "&c%ip% нет в белом списке!"
  Not On Blacklist: "&c%ip% нет в черном списке!"
  Removed From Whitelist: "&aУдален %ip% из белого списка"
  Removed From Blacklist: "&aУдален %ip% из черного списка"
  Invalid IP: "&c%ip% это неверный IP!"
  Invalid Boolean: "&c%arg% не является допустимым логическим значением!"
  Purge: "&aОчистил кеш базы данных!"
  Test Results: "&fРезультаты испытаний для &a&l%ip%&f:"
  Test Result Entry: "&b&l>&a %service_name%&f's показал результат &a&l%result%&f."
  Test Result Entry Disabled: "&8&l>&7 %service_name%&f он &8&lВыключен&7."
  Test Result Entry Final: "&f(&c%flagged_amount%&f/&4%enabled_services_amount%&f) включенные службы пометили этот IP-адрес."
  Aegis Toggle: "&aAegis режим был %status%&a!"
  Aegis Toggle Error: "&cAegis режим уже есть %status%&c!"
  Aegis Toggle Status Enabled: "&a&lВключен"
  Aegis Toggle Status Disabled: "&c&lВыключен"
 
sustrishkenbrff
@sanek1108, На первый взгляд, конфигурация выглядит корректной. Вероятно, возникла проблема при попытке установить соединение с базой данных MySQL. Проверьте настройки базы данных и удостоверьтесь, что они верны.
 
Решение
ВерхНиз