GithubHelp home page GithubHelp logo

antivpn's People

Contributors

alexkarezin avatar alexprogrammerde avatar c0d3-m4513r avatar dependabot[bot] avatar funkemunky avatar kek5chen avatar michielo1 avatar unbeproducoes avatar

Stargazers

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

Watchers

 avatar  avatar

antivpn's Issues

error on first start

[02:03:35 INFO]: Booting up Velocity 3.0.1...
[02:03:35 INFO]: Loading localizations...
[02:03:35 INFO]: Connections will use epoll channels, libdeflate (Linux x86_64) compression, OpenSSL 1.1.x (Linux x86_64) ciphers
[02:03:35 INFO]: Loading plugins...
[02:03:36 INFO]: Loaded plugin kaurivpn 1.5.0 by funkemunky
[02:03:36 INFO]: Loaded plugin spark 1.6.2 by Luck
[02:03:36 INFO]: Loaded 2 plugins
[02:03:36 INFO] [dev.brighten.antivpn.velocity.VelocityPlugin]: Loading config...
[02:03:36 ERROR]: Couldn't pass ProxyInitializeEvent to kaurivpn
java.lang.NullPointerException: null
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:878) ~[velocity-3.0.1.jar:3.0.1]
at com.google.common.io.ByteStreams.copy(ByteStreams.java:104) ~[velocity-3.0.1.jar:3.0.1]
at dev.brighten.antivpn.velocity.util.Config.(Config.java:34) ~[?:?]
at dev.brighten.antivpn.velocity.VelocityPlugin.onInit(VelocityPlugin.java:53) ~[?:?]
at dev.brighten.antivpn.velocity.Lmbda$1.execute(Unknown Source) ~[?:?]
at com.velocitypowered.proxy.event.UntargetedEventHandler$VoidHandler.lambda$buildHandler$0(UntargetedEventHandler.java:47) ~[velocity-3.0.1.jar:3.0.1]
at com.velocitypowered.proxy.event.VelocityEventManager.fire(VelocityEventManager.java:585) ~[velocity-3.0.1.jar:3.0.1]
at com.velocitypowered.proxy.event.VelocityEventManager.lambda$fire$5(VelocityEventManager.java:466) ~[velocity-3.0.1.jar:3.0.1]
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) [?:?]
[02:03:36 INFO]: Listening on /[0:0:0:0:0:0:0:0%0]:23596
[02:03:36 INFO]: Done (2.82s)!

MySQL Error (Plugin works fine though

[13:18:13 INFO]: [KauriVPN] Enabling KauriVPN v1.5.1
[13:18:13 INFO]: Loading config...
[13:18:13 INFO]: Starting AntiVPN services...
[13:18:13 INFO]: Using databaseType MySQL...
[13:18:13 INFO]: Initializing MySQL...
[13:18:13 WARN]: java.lang.reflect.InaccessibleObjectException: Unable to make protected void java.net.URLClassLoader.addURL(java.net.URL) accessible: module java.base does not "opens java.net" to unnamed module @69f1dbef
[13:18:13 WARN]: at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
[13:18:13 WARN]: at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
[13:18:13 WARN]: at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
[13:18:13 WARN]: at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
[13:18:13 WARN]: at KauriVPN-1.5.1.jar//dev.brighten.antivpn.utils.MiscUtils.injectURL(MiscUtils.java:65)
[13:18:13 WARN]: at KauriVPN-1.5.1.jar//dev.brighten.antivpn.database.sql.utils.MySQL.init(MySQL.java:24)
[13:18:13 WARN]: at KauriVPN-1.5.1.jar//dev.brighten.antivpn.database.sql.MySqlVPN.init(MySqlVPN.java:233)
[13:18:13 WARN]: at KauriVPN-1.5.1.jar//dev.brighten.antivpn.AntiVPN.start(AntiVPN.java:58)
[13:18:13 WARN]: at KauriVPN-1.5.1.jar//dev.brighten.antivpn.bukkit.BukkitPlugin.onEnable(BukkitPlugin.java:41)
[13:18:13 WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264)
[13:18:13 WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370)
[13:18:13 WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:500)
[13:18:13 WARN]: at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugin(CraftServer.java:561)
[13:18:13 WARN]: at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugins(CraftServer.java:475)
[13:18:13 WARN]: at net.minecraft.server.MinecraftServer.loadWorld(MinecraftServer.java:730)
[13:18:13 WARN]: at net.minecraft.server.dedicated.DedicatedServer.init(DedicatedServer.java:317)
[13:18:13 WARN]: at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1217)
[13:18:13 WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319)
[13:18:13 WARN]: at java.base/java.lang.Thread.run(Thread.java:833)
[13:18:13 ERROR]: [STDERR] [com.mysql.jdbc.Driver] Loading class com.mysql.jdbc.Driver'. This is deprecated. The new driver class is com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
[13:18:17 INFO]: Connection to MySQL has been established.
[13:18:17 INFO]: Creating tables...
[13:18:17 INFO]: Creating indexes...
[13:18:17 INFO]: Setting up and registering commands...

"org.bukkit.entity.Player.getAddress()" is null

[05:20:10 INFO]: UUID of player Bunger is 95608b22-7d7f-3267-b844-24cdd996c5ee
[05:20:10 INFO]: Disconnecting com.mojang.authlib.GameProfile@b65f03d[id=95608b22-7d7f-3267-b844-24cdd996c5ee,name=Bunger,properties={textures=[com.mojang.authlib.properties.Property@202388e0]},legacy=false] (/147.28.173.143:53934): You are banned from this server. Reason: The Ban Hammer has spoken!
[05:20:10 INFO]: com.mojang.authlib.GameProfile@b65f03d[id=95608b22-7d7f-3267-b844-24cdd996c5ee,name=Bunger,properties={textures=[com.mojang.authlib.properties.Property@202388e0]},legacy=false] (/147.28.173.143:53934) lost connection: You are banned from this server. Reason: The Ban Hammer has spoken!
[05:20:10 WARN]: [KauriVPN] Task #857000 for KauriVPN v1.9.1 generated an exception
java.lang.NullPointerException: Cannot invoke "java.net.InetSocketAddress.getAddress()" because the return value of "org.bukkit.entity.Player.getAddress()" is null
at dev.brighten.antivpn.bukkit.BukkitListener$2.run(BukkitListener.java:121) ~[KauriVPN-1.9.1.jar:?]
at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.20.1.jar:git-Paper-19]
at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:480) ~[paper-1.20.1.jar:git-Paper-19]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1480) ~[paper-1.20.1.jar:git-Paper-19]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:447) ~[paper-1.20.1.jar:git-Paper-19]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1394) ~[paper-1.20.1.jar:git-Paper-19]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1171) ~[paper-1.20.1.jar:git-Paper-19]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:318) ~[paper-1.20.1.jar:git-Paper-19]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
[05:20:20 INFO]: Server is now paused. (Worlds saved)
[18:01:02 INFO]: Server is now resumed.
[18:01:03 INFO]: UUID of player Bunger is 95608b22-7d7f-3267-b844-24cdd996c5ee
[18:01:03 INFO]: Disconnecting com.mojang.authlib.GameProfile@5af125ba[id=95608b22-7d7f-3267-b844-24cdd996c5ee,name=Bunger,properties={textures=[com.mojang.authlib.properties.Property@6594b8c3]},legacy=false] (/147.28.173.143:46786): You are banned from this server. Reason: The Ban Hammer has spoken!
[18:01:03 WARN]: [KauriVPN] Task #967558 for KauriVPN v1.9.1 generated an exception
java.lang.NullPointerException: Cannot invoke "java.net.InetSocketAddress.getAddress()" because the return value of "org.bukkit.entity.Player.getAddress()" is null
at dev.brighten.antivpn.bukkit.BukkitListener$2.run(BukkitListener.java:121) ~[KauriVPN-1.9.1.jar:?]
at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.20.1.jar:git-Paper-19]
at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:480) ~[paper-1.20.1.jar:git-Paper-19]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1480) ~[paper-1.20.1.jar:git-Paper-19]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:447) ~[paper-1.20.1.jar:git-Paper-19]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1394) ~[paper-1.20.1.jar:git-Paper-19]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1171) ~[paper-1.20.1.jar:git-Paper-19]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:318) ~[paper-1.20.1.jar:git-Paper-19]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
[18:01:03 INFO]: com.mojang.authlib.GameProfile@5af125ba[id=95608b22-7d7f-3267-b844-24cdd996c5ee,name=Bunger,properties={textures=[com.mojang.authlib.properties.Property@6594b8c3]},legacy=false] (/147.28.173.143:46786) lost connection: You are banned from this server. Reason: The Ban Hammer has spoken!

Folia Support for KauriVPN?

https://github.com/PaperMC/Folia

Here is a summary of everything made with ChatGPT to save some time:

For plugin developers, there are a few key takeaways from the given text:

  1. Folia introduces regionised multithreading, which means that plugins will require modification to function properly. Plugin developers should expect compatibility with existing plugins to be at zero.

  2. Folia introduces new API additions, such as the RegionisedScheduler and EntityScheduler, which can help plugins run on the correct thread context.

  3. To ensure compatibility with Folia, plugin developers must mark their plugin as compatible by placing "folia-supported: true" in the plugin.yml file. Additionally, plugins must take advantage of the RegionisedScheduler and EntityScheduler API to ensure correct behavior.

  4. Plugins should not assume that they can access or modify data in other regions, as Folia regions tick in parallel and do not share data. Plugin developers should take advantage of the upcoming thread-check API to ensure correct behavior.

  5. There are currently broken API, including the scoreboard API, and planned API changes, such as super aggressive thread checks, which may impact plugin development.

Overall, plugin developers should be prepared for significant changes in their plugins to ensure compatibility with Folia. They should take advantage of the new API additions and mark their plugin as compatible to ensure correct behavior. Additionally, they should be aware of the limitations and rules of Folia's regionised multithreading to avoid bugs and errors in their plugins.

Config won't generate on Velocity Proxy, error in console.

KauriVPN 1.5.1
I had manually put the config in but I got a Mysql error after updating, so I deleted the config folder and restarted the server and I'm back to this issue. Reporting since it happened in the last version as well and I think something needs fixing.

Running the plugin only on my Proxy server (Velocity 3.0.1)

[15:49:40 INFO] [dev.brighten.antivpn.velocity.VelocityPlugin]: Loading config...
[15:49:40 ERROR]: Couldn't pass ProxyInitializeEvent to kaurivpn
java.lang.NullPointerException: null
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:878) ~[velocity.jar:3.0.1]
at com.google.common.io.ByteStreams.copy(ByteStreams.java:104) ~[velocity.jar:3.0.1]
at dev.brighten.antivpn.velocity.util.Config.(Config.java:34) ~[?:?]
at dev.brighten.antivpn.velocity.VelocityPlugin.onInit(VelocityPlugin.java:53) ~[?:?]
at dev.brighten.antivpn.velocity.Lmbda$4.execute(Unknown Source) ~[?:?]
at com.velocitypowered.proxy.event.UntargetedEventHandler$VoidHandler.lambda$buildHandler$0(UntargetedEventHandler.java:47) ~[velocity.jar:3.0.1]
at com.velocitypowered.proxy.event.VelocityEventManager.fire(VelocityEventManager.java:585) ~[velocity.jar:3.0.1]
at com.velocitypowered.proxy.event.VelocityEventManager.lambda$fire$5(VelocityEventManager.java:466) ~[velocity.jar:3.0.1]
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) [?:?]

Tab completing/typing last 'n' in /antivpn plan throws NPE on Velocity

After typing the last 'n' character in /antivpn plan or anything after it, a NPE is thrown on Velocity. Tested with Velocity 3.1.2-SNAPSHOT-b200 and KauriVPN 1.8.2.1.

[21:21:01 ERROR]: Node cannot provide suggestions
java.lang.NullPointerException: Cannot invoke "java.util.List.iterator()" because "suggestions" is null
        at com.velocitypowered.proxy.command.registrar.InvocableCommandRegistrar.lambda$createLiteral$4(InvocableCommandRegistrar.java:107) ~[velocity-3.1.2-SNAPSHOT-200.jar:3.1.2-SNAPSHOT (git-1ec77eb1-b200)]
        at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646) ~[?:?]
        at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) ~[?:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1773) ~[?:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) ~[?:?]
        at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?]
        at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?]
        at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?]
        at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?]
        at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?

[FEATURE] Command to view allowlist entries

Is your feature request related to a problem? Please describe.
No way to view allowlist while in game.

Describe the solution you'd like
Add a command like /antivpn allowlist show to allow users with permission to view all entries in the allow list. Maybe use a page format of X entries per page

Describe alternatives you've considered
None

Additional context

[FEATURE] Porting project

Howdy,
Sorry for writing here but I couldn't find another way to contact you. I am interested in your AdvancedAntiVPN plugin, but ported to a C++ application. If you are somehow interested, let me know.
Greetings

Error on Join 1.20.6 [BUG]

[20:16:15 WARN]: [KauriVPN] Task #726 for KauriVPN v1.9.2 generated an exception
java.lang.NullPointerException: Cannot invoke "net.minecraft.server.network.ServerGamePacketListenerImpl.protocol()" because "org.bukkit.craftbukkit.entity.CraftPlayer.getHandle().connection" is null
at org.bukkit.craftbukkit.entity.CraftPlayer.getAddress(CraftPlayer.java:266) ~[purpur-1.20.6.jar:1.20.6-2230-eac4198]
at KauriVPN-1.9.2.jar/dev.brighten.antivpn.bukkit.BukkitListener$1.run(BukkitListener.java:106) ~[KauriVPN-1.9.2.jar:?]
at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:101) ~[purpur-1.20.6.jar:1.20.6-2230-eac4198]
at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:482) ~[purpur-1.20.6.jar:1.20.6-2230-eac4198]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1734) ~[purpur-1.20.6.jar:1.20.6-2230-eac4198]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:503) ~[purpur-1.20.6.jar:1.20.6-2230-eac4198]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1606) ~[purpur-1.20.6.jar:1.20.6-2230-eac4198]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1260) ~[purpur-1.20.6.jar:1.20.6-2230-eac4198]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:326) ~[purpur-1.20.6.jar:1.20.6-2230-eac4198]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]

Version 1.7 Database Problems

Version 1.7 displays an error when starting with a database and doesn't seem to connect to it properly, as it doesn't change anything.

It seems, that the Plugin mixes SQLite with MySql!

It creates two SqLite Databases in a Subfolder KauriVPN/databases, looking at the console output, it probably tries to connect to those and fails as it tries to use it as a MySql Database?! Both of the files can't be opend by the DB Browser (Invalid file format).

Also tested in the 1.6.1 and the Database function worked as intended without an error at startup.

Console Output:

[23:28:38 INFO]: Starting AntiVPN services...
[23:28:38 INFO]: Using databaseType MySQL...
[23:28:38 INFO]: Initializing MySQL...
[23:28:38 INFO]: Connection to SQlLite has been established.
[23:28:38 INFO]: Creating tables...
[23:28:38 INFO]: Creating indexes...
[23:28:38 ERROR]: MySQL Excepton createdTable "STATISTICS" not found; SQL statement:
[23:28:38 ERROR]: SELECT COUNT(1) IndexExists FROM INFORMATION_SCHEMA.STATISTICS WHERE table_schema=DATABASE() AND table_name='whitelisted' AND index_name='uuid_1'; [42102-210]
[23:28:38 INFO]: Starting bStats metrics...
[23:28:38 INFO]: Getting strings...
[23:28:38 INFO]: Enabled plugin KauriVPN version 1.7 by funkemunky

Images

image
image

Exception in 1.20.2

Whenever a player joins the following error message is printed in chat.
I am using Paper-280 (MC: 1.20.2) and I am not sure if functionality is affected since I do not have a VPN. (What it does do is fill my log.)

[Thu 22:13:39 WARN  KauriVPN] Task #1299594 for KauriVPN v1.9.1 generated an exception
java.lang.NullPointerException: Cannot invoke "java.net.InetSocketAddress.getAddress()" because the return value of "org.bukkit.entity.Player.getAddress()" is null
    at KauriVPN-1.9.1.jar//dev.brighten.antivpn.bukkit.BukkitListener$2.run(BukkitListener.java:121)
    at org.bukkit.craftbukkit.v1_20_R2.scheduler.CraftTask.run(CraftTask.java:101)
    at org.bukkit.craftbukkit.v1_20_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:480)
    at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1470)
    at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:446)
    at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1379)
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1156)
    at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:315)
    at java.base/java.lang.Thread.run(Thread.java:833)

Received fatal alert: unrecognized_name

08:47:49 INFO]: UUID of player kokowawaa is b9ce10b1-56e4-37f4-bc86-01971cffc6ba
[08:47:50 INFO]: kokowawaa lost connection: Disconnected
[08:47:50 INFO]: Send: Query to VPN API failed! Reason: Java Exception
[08:47:50 INFO]: Query to VPN API failed! Reason: Java Exception
[08:47:50 WARN]: javax.net.ssl.SSLHandshakeException: Received fatal alert: unrecognized_name
[08:47:50 WARN]: at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:131)
[08:47:50 WARN]: at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:117)
[08:47:50 WARN]: at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:358)
[08:47:50 WARN]: at java.base/sun.security.ssl.Alert$AlertConsumer.consume(Alert.java:293)
[08:47:50 WARN]: at java.base/sun.security.ssl.TransportContext.dispatch(TransportContext.java:204)
[08:47:50 WARN]: at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:172)
[08:47:50 WARN]: at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1500)
[08:47:50 WARN]: at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1415)
[08:47:50 WARN]: at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:450)
[08:47:50 WARN]: at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:421)
[08:47:50 WARN]: at java.base/sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:580)
[08:47:50 WARN]: at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:183)
[08:47:50 WARN]: at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1665)
[08:47:50 WARN]: at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589)
[08:47:50 WARN]: at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224)
[08:47:50 WARN]: at java.base/java.net.URL.openStream(URL.java:1161)
[08:47:50 WARN]: at KauriVPN-1.9.1.jar//dev.brighten.antivpn.utils.json.JsonReader.readJsonFromUrl(JsonReader.java:18)
[08:47:50 WARN]: at KauriVPN-1.9.1.jar//dev.brighten.antivpn.web.FunkemunkyAPI.getVPNResponse(FunkemunkyAPI.java:26)
[08:47:50 WARN]: at KauriVPN-1.9.1.jar//dev.brighten.antivpn.api.VPNExecutor.lambda$checkIp$0(VPNExecutor.java:63)
[08:47:50 WARN]: at java.base/java.util.HashMap.compute(HashMap.java:1315)
[08:47:50 WARN]: at KauriVPN-1.9.1.jar//dev.brighten.antivpn.api.VPNExecutor.lambda$checkIp$1(VPNExecutor.java:55)
[08:47:50 WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[08:47:50 WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[08:47:50 WARN]: at java.base/java.lang.Thread.run(Thread.java:833)
[08:47:50 WARN]: Exception in thread "pool-100-thread-1" java.lang.NullPointerException: Cannot invoke "dev.brighten.antivpn.web.objects.VPNResponse.isSuccess()" because "result" is null
[08:47:50 WARN]: at KauriVPN-1.9.1.jar//dev.brighten.antivpn.bukkit.BukkitListener.lambda$onListener$3(BukkitListener.java:109)
[08:47:50 WARN]: at KauriVPN-1.9.1.jar//dev.brighten.antivpn.api.VPNExecutor.lambda$checkIp$1(VPNExecutor.java:55)
[08:47:50 WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[08:47:50 WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[08:47:50 WARN]: at java.base/java.lang.Thread.run(Thread.java:833)
[08:47:50 INFO]: Send: Not enabled
[08:47:50 INFO]: Not enabled
[08:47:50 INFO]: [-] kokowawaa

"/antivpn alerts" toggle issue

Using /antivpn alerts enables the alert for the online session, but when you rejoin the server, the alert is disabled again. The database connection works fine. But it looks like the alert status is not being queried properly by the database. I down't get any errors / warnings in the console.

Version AntiVPN 1.5.2.1 with Waterfall

How to replicate it

  1. /avpn alerts --> notifications have been set to: true (ok)
  2. Rejoin
  3. /avpn alerts --> notifications have been set to: true ( ? )

Error when starting the proxy, but it works properly and you can connect to the server

[22:08:49 INFO]: Loading config...
[22:08:49 INFO]: Starting AntiVPN services...
[22:08:49 INFO]: Using databaseType MySQL...
[22:08:49 INFO]: Initializing MySQL...
[22:08:49 ERROR]: Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
[22:08:49 INFO]: Connection to MySQL has been established.
[22:08:49 INFO]: Creating tables...
[22:08:49 INFO]: Creating indexes...
[22:08:49 INFO]: Getting strings...
[22:08:49 INFO]: Enabled plugin KauriVPN version 1.5.2.1 by funkemunky
[22:08:49 INFO]: Enabled plugin cmd_list version git:cmd_list:1.18-R0.1-SNAPSHOT:21e4c1d:475 by WaterfallMC

[BUG] Antivirus False Positive

Describe the bug
Using many antiviruses, it throws a false positive when server is loaded

To Reproduce
Steps to reproduce the behavior:
Start server

Expected behavior
To not false positive

Screenshots

What instance are you running KauriVPN on?
Put an 'x' in the brackets to check it

  • Velocity
  • Bukkit/Spigot
  • Bungeecord

Additional context
Add any other context about the problem here.

https://www.virustotal.com/gui/file/b8a0356837f58fe39bb808fb007eeba0978fd0455842d14077850e876a45308a

1.7 version not working on Velocity

`[08:52:12] [main/ERROR]: Can't create plugin kaurivpn
com.google.inject.CreationException: Unable to create injector, see the following errors:

  1. [Guice/MissingConstructor]: No injectable constructor for type VelocityPlugin.

class VelocityPlugin does not have a @Inject annotated constructor or a no-arg constructor.

Requested by:
1 : VelocityPlugin.class(VelocityPlugin.java:29)
at VelocityPluginModule.configure(VelocityPluginModule.java:48)

Learn more:
https://github.com/google/guice/wiki/MISSING_CONSTRUCTOR

1 error

======================
Full classname legend:

VelocityPlugin: "dev.brighten.antivpn.velocity.VelocityPlugin"
VelocityPluginModule: "com.velocitypowered.proxy.plugin.loader.java.VelocityPluginModule"

End of classname legend:

at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:568) ~[velocity-3.1.2-SNAPSHOT-122.jar:3.1.2-SNAPSHOT (git-f0ea638f-b122)]
at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:163) ~[velocity-3.1.2-SNAPSHOT-122.jar:3.1.2-SNAPSHOT (git-f0ea638f-b122)]
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:110) ~[velocity-3.1.2-SNAPSHOT-122.jar:3.1.2-SNAPSHOT (git-f0ea638f-b122)]
at com.google.inject.Guice.createInjector(Guice.java:87) ~[velocity-3.1.2-SNAPSHOT-122.jar:3.1.2-SNAPSHOT (git-f0ea638f-b122)]
at com.google.inject.Guice.createInjector(Guice.java:69) ~[velocity-3.1.2-SNAPSHOT-122.jar:3.1.2-SNAPSHOT (git-f0ea638f-b122)]
at com.google.inject.Guice.createInjector(Guice.java:59) ~[velocity-3.1.2-SNAPSHOT-122.jar:3.1.2-SNAPSHOT (git-f0ea638f-b122)]
at com.velocitypowered.proxy.plugin.loader.java.JavaPluginLoader.createPlugin(JavaPluginLoader.java:119) ~[velocity-3.1.2-SNAPSHOT-122.jar:3.1.2-SNAPSHOT (git-f0ea638f-b122)]
at com.velocitypowered.proxy.plugin.VelocityPluginManager.loadPlugins(VelocityPluginManager.java:151) ~[velocity-3.1.2-SNAPSHOT-122.jar:3.1.2-SNAPSHOT (git-f0ea638f-b122)]
at com.velocitypowered.proxy.VelocityServer.loadPlugins(VelocityServer.java:324) ~[velocity-3.1.2-SNAPSHOT-122.jar:3.1.2-SNAPSHOT (git-f0ea638f-b122)]
at com.velocitypowered.proxy.VelocityServer.start(VelocityServer.java:222) ~[velocity-3.1.2-SNAPSHOT-122.jar:3.1.2-SNAPSHOT (git-f0ea638f-b122)]
at com.velocitypowered.proxy.Velocity.main(Velocity.java:64) ~[velocity-3.1.2-SNAPSHOT-122.jar:3.1.2-SNAPSHOT (git-f0ea638f-b122)]`

Also tried on stable version of Velocity with the same results.

[BUG] The executor `dev.brighten.antivpn.api.VPNExecutor.threadExecutor` never exits on bukkit/spigot

Describe the bug
A clear and concise description of what the bug is.

Servers running on Bukkit/Spigot implementations, that do not halt the JVM will get stuck infinitely when shutting down, due to non-daemon, non-finalizer threads being present.

To Reproduce
Steps to reproduce the behavior:

  1. Run the AntiVPN plugin on any Bukkit/Spigot implementation, that does not halt the jvm on stop.
  2. Try to stop the server.

Expected behavior
A clear and concise description of what you expected to happen.
The server stops

Screenshots
If applicable, add screenshots to help explain your problem.

[28Jun2024 17:28:36.954] [Server thread/ERROR] [Minecraft/]: Current Thread: Thread-34
[28Jun2024 17:28:36.954] [Server thread/ERROR] [Minecraft/]: 	PID: 295 | Suspended: false | Native: false | Daemon: false | State: TIMED_WAITING
[28Jun2024 17:28:36.954] [Server thread/ERROR] [Minecraft/]: 	Stack:
[28Jun2024 17:28:36.954] [Server thread/ERROR] [Minecraft/]: 		[email protected]/java.lang.Thread.sleep(Native Method)
[28Jun2024 17:28:36.954] [Server thread/ERROR] [Minecraft/]: 		dev.brighten.antivpn.database.local.H2VPN.lambda$new$0(H2VPN.java:43)
[28Jun2024 17:28:36.954] [Server thread/ERROR] [Minecraft/]: 		dev.brighten.antivpn.database.local.H2VPN$$Lambda$76212/0x00007f83bba8fbf8.run(Unknown Source)
[28Jun2024 17:28:36.954] [Server thread/ERROR] [Minecraft/]: 		[email protected]/java.lang.Thread.run(Thread.java:840)

What instance are you running KauriVPN on?
Put an 'x' in the brackets to check it

  • Velocity
  • Bukkit/Spigot
  • Bungeecord

Additional context
Add any other context about the problem here.

[Velocity] Command suggestion not working correctly

I would expect when completing /antivpn to be suggested all the existing subcommands.
Instead I get just nothing. To know the subcommands, I have to execute the main command once, just to remember the subcommands. And if that is the case, then why does command suggestion exist?

[v1.9.1] Null command suggestions on Velocity

Using Velocity 3.2.0-SNAPSHOT (git-37fedf50-b260)

[13:12:10 ERROR]: Node cannot provide suggestions
java.lang.NullPointerException: Cannot invoke "java.util.List.iterator()" because "suggestions" is null
        at com.velocitypowered.proxy.command.registrar.InvocableCommandRegistrar.lambda$createLiteral$4(InvocableCommandRegistrar.java:107) ~[velocity.jar:3.2.0-SNAPSHOT (git-37fedf50-b260)]
        at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646) ~[?:?]
        at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) ~[?:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1773) ~[?:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) ~[?:?]
        at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?]
        at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?]
        at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?]
        at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?]
        at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?]
[13:12:12 ERROR]: Node cannot provide suggestions
java.lang.NullPointerException: Cannot invoke "java.util.List.iterator()" because "suggestions" is null
        at com.velocitypowered.proxy.command.registrar.InvocableCommandRegistrar.lambda$createLiteral$4(InvocableCommandRegistrar.java:107) ~[velocity.jar:3.2.0-SNAPSHOT (git-37fedf50-b260)]
        at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646) ~[?:?]
        at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) ~[?:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1773) ~[?:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) ~[?:?]
        at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?]
        at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?]
        at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?]
        at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?]
        at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?]
[13:12:12 ERROR]: Node cannot provide suggestions
java.lang.NullPointerException: Cannot invoke "java.util.List.iterator()" because "suggestions" is null
        at com.velocitypowered.proxy.command.registrar.InvocableCommandRegistrar.lambda$createLiteral$4(InvocableCommandRegistrar.java:107) ~[velocity.jar:3.2.0-SNAPSHOT (git-37fedf50-b260)]
        at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646) ~[?:?]
        at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) ~[?:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1773) ~[?:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) ~[?:?]
        at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?]
        at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?]
        at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?]
        at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?]
        at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?]

Cannot use MySQL database

Consistently hitting with this error when I enable it

[23:33:30 WARN]: Exception in thread "pool-95-thread-3" java.lang.NullPointerException: Cannot invoke "com.mysql.cj.result.Row.wasNull()" because "this.thisRow" is null
[23:33:30 WARN]: at com.mysql.cj.jdbc.result.ResultSetImpl.wasNull(ResultSetImpl.java:2540)
[23:33:30 WARN]: at dev.brighten.antivpn.database.sql.MySqlVPN.getStoredResponse(MySqlVPN.java:53)
[23:33:30 WARN]: at dev.brighten.antivpn.api.VPNExecutor.lambda$null$0(VPNExecutor.java:39)
[23:33:30 WARN]: at java.base/java.util.HashMap.compute(HashMap.java:1320)
[23:33:30 WARN]: at dev.brighten.antivpn.api.VPNExecutor.lambda$checkIp$1(VPNExecutor.java:37)
[23:33:30 WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
[23:33:30 WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
[23:33:30 WARN]: at java.base/java.lang.Thread.run(Thread.java:831)

Version 1.7.1 Database Problems

Yes, this is a copy of #21, but it got closed too early and I can't reopen it!

Version 1.7.1 displays an error when starting with a database and doesn't seem to connect to it properly, as it doesn't change anything.

It seems, that the Plugin mixes SQLite with MySql!

It creates two SqLite Databases in a Subfolder KauriVPN/databases, looking at the console output, it probably tries to connect to those and fails as it tries to use it as a MySql Database?! Both of the files can't be opend by the DB Browser (Invalid file format).

Also tested in the 1.6.1 and the Database function worked as intended without an error at startup.

Console Output:

[23:28:38 INFO]: Starting AntiVPN services...
[23:28:38 INFO]: Using databaseType MySQL...
[23:28:38 INFO]: Initializing MySQL...
[23:28:38 INFO]: Connection to SQlLite has been established.
[23:28:38 INFO]: Creating tables...
[23:28:38 INFO]: Creating indexes...
[23:28:38 ERROR]: MySQL Excepton createdTable "STATISTICS" not found; SQL statement:
[23:28:38 ERROR]: SELECT COUNT(1) IndexExists FROM INFORMATION_SCHEMA.STATISTICS WHERE table_schema=DATABASE() AND table_name='whitelisted' AND index_name='uuid_1'; [42102-210]
[23:28:38 INFO]: Starting bStats metrics...
[23:28:38 INFO]: Getting strings...
[23:28:38 INFO]: Enabled plugin KauriVPN version 1.7 by funkemunky

Images

image
image

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.