Coder Social home page Coder Social logo

votifierplus's People

Contributors

bencodez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

votifierplus's Issues

Bungeecord error

Hello, my VotifierPlus dident work an show this error:
[VotifierPlus]: Failed to send vote to survival(127.0.0.1:0): Vote (from:minestatus.net test vote username:aquiurbex address:84.78.240.192 timeStamp:1672358812821), ignore this if server is offline

My bungeecord config:

Debug: false
host: 0.0.0.0
port: 25864
Forwarding:
  survival:
    Enabled: true
    Host: '127.0.0.1'
    Port: '25891'
    Key: '(Survival public key)'

My survival config:


DebugLevel: NONE
host: 0.0.0.0
port: 25891
Forwarding:
  survival:
    Enabled: false
    Host: ''
    Port: ''
    Key: ''

Thanks for reading.

Not sure what this means. :p

Whenever i use the command /votifierplus vote, it tells me to check the console for results, this is what i get:

at VotifierPlus.jar//com.vexsoftware.votifier.commands.CommandLoader$3.execute(CommandLoader.java:89)
31.05 00:28:40 [Server] WARN at VotifierPlus.jar//com.bencodez.VotifierPlus.advancedcore.api.command.CommandHandler$1.run(CommandHandler.java:446)
31.05 00:28:40 [Server] WARN at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftTask.run(CraftTask.java:101)
31.05 00:28:40 [Server] WARN at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57)
31.05 00:28:40 [Server] WARN at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
31.05 00:28:40 [Server] WARN at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
31.05 00:28:40 [Server] WARN at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
31.05 00:28:40 [Server] WARN at java.base/java.lang.Thread.run(Thread.java:833)

Please help me, I have no idea what these mean

Setup

Hey, how do I set this plugin up? Couldn't find any docs on it

Help, I need this fixed!

[21:28:23 WARN]: java.net.SocketTimeoutException: Connect timed out
[21:28:23 WARN]: at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:551)
[21:28:23 WARN]: at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:602)
[21:28:23 WARN]: at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
[21:28:23 WARN]: at java.base/java.net.Socket.connect(Socket.java:633)
[21:28:23 WARN]: at VotifierPlus.jar//com.vexsoftware.votifier.commands.CommandLoader$3.execute(CommandLoader.java:89)
[21:28:23 WARN]: at VotifierPlus.jar//com.bencodez.VotifierPlus.advancedcore.api.command.CommandHandler$1.run(CommandHandler.java:446)
[21:28:23 WARN]: at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftTask.run(CraftTask.java:101)
[21:28:23 WARN]: at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57)
[21:28:23 WARN]: at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
[21:28:23 WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[21:28:23 WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[21:28:23 WARN]: at java.base/java.lang.Thread.run(Thread.java:833)

This is the error from console please help!

questions about the config

Beautiful good day,

I have a question about the config, as integrating the votes seems to be much more extensive in Java than in Bedrock.

We actually had a Bedrock server, but were now forced to switch to Java because we can no longer work with Nukkit.
Now we finally wanted to include voting for users again, but it looks completely different here than on the Bedrock server. That's why I hope I can be helped here.

I have the plugin on our Velocity Server. In the bungeeconfig.yml I have now entered our IP under host and instead of server1 (which is default) the name of our server that is supposed to distribute the rewards. (currently only one server in the network, there will be more in the future, which is why it should work directly via Velocity)
I entered true under the server name for Enabled: but I'm unsure what needs to be added to the host, port and key.
And is it enough that I only have the plugin on the Velocity, or do I also have to put it on the Paper Server and set it up?

Of course, I know in the meantime that I also have to use the privat.key to integrate the voting websites, but I think I'll rather deal with the websites than get help from here and I wanted to deal with it , when I know that I have already set everything up correctly.

Then the voting plugin comes in, but one after the other. :)

Thank you very much for your time
Best regards
DueKay

Ps. sry if the translation is rather bad (google)

Schönen guten tag,

ich hätte eine Frage zu der config, da dass mit den Votes einbinden scheinbar in Java viel umfangreicher ist, als bei Bedrock.

Wir hatten eigentlich einen Bedrock Server, waren mittlerweile aber gezwungen auf Java umzustellen, da wir mit Nukkit nicht mehr weiter arbeiten können.
Nun wollten wir endlich wieder das Voten für User mit einbinden, doch das sieht hier gänzlich anders aus, als beim Bedrock Server. Deswegen hoffe ich, dass mir hier geholfen werden kann.

Ich habe das Plugin auf unserem Velocity Server liegen. In der bungeeconfig.yml habe ich jetzt bei host unsere IP eingegeben und statt server1 (was vorgegeben ist) den Namen unserers Servers, der die Belohnungen verteilen soll. (derzeit nur ein Server im Netzwerk, zukünftig sollen es weitere werden, weshalb es direkt über Velocity funktionieren sollte)
Unter den Servernamen hab ich bei Enabled: true eingegeben, doch ich bin mir unsicher was bei Host, Port und Key rein muss.
Und reicht es, dass ich das Plugin nur auf dem Velocity hab, oder muss ich es ebenfalls auf den Paper Server legen und einstellen?

Natürlich weiß ich derweil, dass ich den privat.key auch noch benutzen muss um die Vote Webseiten einzubinden, doch ich denke, da werde ich mich dann eher mit den Webseiten auseinander setzen, als dass ich dafür von hier Hilfe bekomme und wollte mich damit beschäftigen, wenn ich weiß, dass ich sonst schonmal alles richtig eingestellt habe.

Anschließend kommt dann noch das Voting-Plugin dran, aber eins nach dem anderen. :)

Vielen dank schonmal für Ihre Zeit
Liebe Grüße
DueKay

Ps. sry wenn die Übersetzung eher schlecht ist (google)

Quick Question

Hello there, before it worked but something is wrong with my dependecy

    <dependency>
        <groupId>com.github.BenCodez</groupId>
        <artifactId>VotifierPlus</artifactId>
        <version>LATEST</version>
        <scope>provided</scope>
    </dependency>
    
    And can i get the <repository></repository>?
    
    I'm using VotifierPlus 1.0.7 with Spigot 1.19.2

Help Setup

Hey, can you help me setting up VotifierPlus on Bungeecord?

My BungeeConfig:

Debug: true
host: 0.0.0.0
port: 8192
Forwarding:
  citybuild:
    Enabled: true
    Host: '127.0.0.1'
    Port: '46179'
    Key: 'here i have the public key from my citybuilds rsa'

My SpigotConfig:

# Debug levels:
# NONE
# INFO
# EXTRA
DebugLevel: NONE
host: 0.0.0.0
port: 46179
Forwarding:
  server1:
    Enabled: false
    Host: ''
    Port: ''
    Key: ''

Now if i get a vote, in the bungee console this happens

[16:54:01 INFO] [VotifierPlus]: Debug: Received vote record -> Vote (from:minecraft-server.eu username:JoeyPlayzTV address:212.86.48.0 timeStamp:1622732016)
[16:54:01 INFO] [VotifierPlus]: Debug: Sending vote to citybuild
[16:54:01 INFO] [VotifierPlus]: Failed to send vote to citybuild(127.0.0.1:0): Vote (from:minecraft-server.eu username:JoeyPlayzTV address:212.86.48.0 timeStamp:1622732016), ignore this if server is offline
[16:54:01 ERROR]: java.net.ConnectException: Connection refused (Connection refused)
[16:54:01 ERROR]:       at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
[16:54:01 ERROR]:       at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
[16:54:01 ERROR]:       at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
[16:54:01 ERROR]:       at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
[16:54:01 ERROR]:       at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403)
[16:54:01 ERROR]:       at java.base/java.net.Socket.connect(Socket.java:609)
[16:54:01 ERROR]:       at com.vexsoftware.votifier.net.VoteReceiver.run(VoteReceiver.java:198)

Why it says (127.0.0.1:0) in debug. i have set the port to 46179 and not to 0 can it be a issue of your code?

Unable to establish a connection

I tried to adjust everything, but the error comes that it doesn't work

Log: [23:46:12 WARN]: java.lang.NullPointerException: Cannot invoke "com.vexsoftware.votifier.net.VoteReceiver.encrypt(byte[], java.security.PublicKey)" because the return value of "com.vexsoftware.votifier.VotifierPlus.getVoteReceiver()" is null
[23:46:12 WARN]: at VotifierPlus.jar//com.vexsoftware.votifier.commands.CommandLoader$3.execute(CommandLoader.java:91)
[23:46:12 WARN]: at VotifierPlus.jar//com.bencodez.VotifierPlus.advancedcore.api.command.CommandHandler$1.run(CommandHandler.java:446)
[23:46:12 WARN]: at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftTask.run(CraftTask.java:101)
[23:46:12 WARN]: at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57)
[23:46:12 WARN]: at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
[23:46:12 WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[23:46:12 WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[23:46:12 WARN]: at java.base/java.lang.Thread.run(Thread.java:833)

I need help setting up VotifierPlus

I tried finding yt tutorials on how to set up, however, they were all for hosted servers. I am running a local server on my own PC. How do I set it up?

Folia support?

Would be great if this plugin would be Folia compatible.

Tutorials are inaccurate

In the reviews section, someone complains about there not being an official tutorial for votifierplus. You responded saying that any votifier tutorial would suffice. However, your config system is significantly different, which leads to confusion.

For example, in the below linked tutorial for nuvotifier, each server's config has a token that is used to connect the sub server to the proxy for receiving votes. This plugin does not include a token. I'm assuming that the token is the public key in the rsa folder, but that is not explained.

Second difference, in nuvotifier, only the proxy has forwarding options. In this plugin, all servers have forwarding options and there isn't a proxy setting. Do I need to put all the other servers including the proxy into the forwarding section of each server config? Does the plugin automatically detect the presence of a network proxy?

https://www.youtube.com/watch?v=E7E3NkX9lBU

Error shutting down my server

Error when shutting down my server, I don't know why it is, I use a host for my server.

08.08 10:17:31 [Server] WARN Protocol error. Ignoring packet - Socket closed
08.08 10:17:31 [Server] WARN java.net.SocketException: Socket closed
08.08 10:17:31 [Server] WARN at java.base/sun.nio.ch.NioSocketImpl.endAccept(NioSocketImpl.java:689)
08.08 10:17:31 [Server] WARN at java.base/sun.nio.ch.NioSocketImpl.accept(NioSocketImpl.java:762)
08.08 10:17:31 [Server] WARN at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:675)
08.08 10:17:31 [Server] WARN at java.base/java.net.ServerSocket.platformImplAccept(ServerSocket.java:641)
08.08 10:17:31 [Server] WARN at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:617)
08.08 10:17:31 [Server] WARN at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:574)
08.08 10:17:31 [Server] WARN at java.base/java.net.ServerSocket.accept(ServerSocket.java:532)
08.08 10:17:31 [Server] WARN at VotifierPlus.jar//com.vexsoftware.votifier.net.VoteReceiver.run(VoteReceiver.java:131

Exception using Forwarding

I have setup vote-forwarding for use with a proxy-server and all is working fine. But if a vote gets received, a exception is thrown in the sub-server.

[VotifierPlus] Exception caught while receiving a vote notification [03.03 14:37:25.913] INFORMATION: [Testserver-1] [14:37:25 WARN]: java.lang.IllegalArgumentException: Last unit does not have enough valid bits [03.03 14:37:25.914] INFORMATION: [Testserver-1] [14:37:25 WARN]: at java.base/java.util.Base64$Decoder.decode0(Base64.java:868) [03.03 14:37:25.914] INFORMATION: [Testserver-1] [14:37:25 WARN]: at java.base/java.util.Base64$Decoder.decode(Base64.java:566) [03.03 14:37:25.915] INFORMATION: [Testserver-1] [14:37:25 WARN]: at java.base/java.util.Base64$Decoder.decode(Base64.java:589) [03.03 14:37:25.916] INFORMATION: [Testserver-1] [14:37:25 WARN]: at VotifierPlus.jar//com.vexsoftware.votifier.net.VoteReceiver.run(VoteReceiver.java:185)

Key

What is the key. Is it the public key or token? I do not see a token in the config.

Bug: Unable to receive cmi rewards

The plugin doesn't seem to be able to notify the cmi, or the cmi can't do the rewards, in short I know VotifierPlus is working but I'm not receiving a corresponding response! I've also invited other people who run my world servers to test it and the results are the same.

DB issue, throws warnings in console

[14:32:28 WARN]: [VotifierPlus] Plugin VotifierPlus v1.0.6 generated an exception while executing task 324225
java.lang.NullPointerException: Cannot invoke "com.bencodez.VotifierPlus.advancedcore.api.user.userstorage.sql.Database.getTables()" because "this.database" is null
at com.bencodez.VotifierPlus.advancedcore.AdvancedCorePlugin.getSQLiteUserTable(AdvancedCorePlugin.java:355) ~[VotifierPlus.jar:?]
at com.bencodez.VotifierPlus.advancedcore.api.user.UserData.getSQLiteRow(UserData.java:232) ~[VotifierPlus.jar:?]
at com.bencodez.VotifierPlus.advancedcore.api.user.UserData.getKeys(UserData.java:193) ~[VotifierPlus.jar:?]
at com.bencodez.VotifierPlus.advancedcore.api.user.UserData.getKeys(UserData.java:178) ~[VotifierPlus.jar:?]
at com.bencodez.VotifierPlus.advancedcore.api.user.usercache.UserDataCache.cache(UserDataCache.java:47) ~[VotifierPlus.jar:?]
at com.bencodez.VotifierPlus.advancedcore.api.user.usercache.UserDataManager.cacheUser(UserDataManager.java:71) ~[VotifierPlus.jar:?]
at com.bencodez.VotifierPlus.advancedcore.api.user.AdvancedCoreUser.cache(AdvancedCoreUser.java:206) ~[VotifierPlus.jar:?]
at com.bencodez.VotifierPlus.advancedcore.api.user.UserData.getString(UserData.java:274) ~[VotifierPlus.jar:?]
at com.bencodez.VotifierPlus.advancedcore.api.user.UserData.getString(UserData.java:241) ~[VotifierPlus.jar:?]
at com.bencodez.VotifierPlus.advancedcore.api.user.AdvancedCoreUser.isCheckWorld(AdvancedCoreUser.java:644) ~[VotifierPlus.jar:?]
at com.bencodez.VotifierPlus.advancedcore.listeners.WorldChangeEvent$1.run(WorldChangeEvent.java:47) ~[VotifierPlus.jar:?]
at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[purpur-1.18.1.jar:git-Purpur-1449]
at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[purpur-1.18.1.jar:git-Purpur-1449]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[purpur-1.18.1.jar:git-Purpur-1449]
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) ~[?:?]

I can't add your plugin as a dependency

This is the error message from maven:

com.github.Ben12345rocks:AdvancedCore:pom:master-SNAPSHOT was not found in https://oss.sonatype.org/content/groups/public/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of sonatype has elapsed or updates are forced
com.github.Ben12345rocks:AdvancedCore:pom:master-SNAPSHOT was not found in https://oss.sonatype.org/content/groups/public/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of sonatype has elapsed or updates are forced 

I think the error is in your core!

Failed to send vote

Not sure if this is a me issue but maybe someone can assist me.
I am using both Waterfall and Paper 1.17 servers running java 16.

I setup VoteifierPlus on the Proxy and Hub servers.

Proxy Config:
Debug: true
host: 0.0.0.0
port: 8192
Forwarding:
Hub:
Enabled: true
Host: '172.18.0.1'
Port: '8193'
Key: 'used the hubs public key'

Hub Config:
DebugLevel: INFO
host: 0.0.0.0
port: 8193
Forwarding:
server1:
Enabled: false
Host: ''
Port: ''
Key: ''

When i use a vote tester like https://mctools.org/votifier-tester i get this error on the proxy:

[21:26:31 INFO] [VotifierPlus]: Failed to send vote to Hub(172.18.0.1:0): Vote (from:MCTools.org username:RainbowDash__ address:REMOVED timeStamp:1625261189), ignore this if server is offline
[21:26:31 ERROR]: java.net.SocketTimeoutException: Connect timed out
[21:26:31 ERROR]: at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:546)
[21:26:31 ERROR]: at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:597)
[21:26:31 ERROR]: at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:333)
[21:26:31 ERROR]: at java.base/java.net.Socket.connect(Socket.java:645)
[21:26:31 ERROR]: at com.vexsoftware.votifier.net.VoteReceiver.run(VoteReceiver.java:198)

Thanks in advance for any help :)

Paper 1.19.2 Issues | Help

Hello I have a paper server with the latest version but unfortunately I can not use the votifier plugin and I also do not understand why are known errors ? my console only tells me this

[19:16:49 INFO]: 21MX issued server command: /votifierplus:votifierplus Reload
[19:16:49 WARN]: [VotifierPlus] Protocol error. Ignoring packet - Socket closed
[19:16:49 INFO]: [VotifierPlus] Votifier enabled.

Error reading configuration file or RSA keys

When installing plugin (clean install), this error is thrown and plugin does not load. The only file in the RSA folder is the public key (no private key).
Screen Shot 2020-05-10 at 11 37 57 PM

When I try to run the votifier plus command I receive this null pointer exception
Screen Shot 2020-05-10 at 11 38 04 PM

And I also receive a null pointer exception when running the test command.

Fowarding votes send with a port of 0?

Trying to send a vote forward and I get this error:

31.05 10:44:28 [Server] Votifier I/O/INFO [VotifierPlus/]: Debug: Received vote record -> Vote (from:MCTools.org username:xSlaze address:XX.XXX.XXX.XXX timeStamp:1653993868)
31.05 10:44:28 [Server] Votifier I/O/INFO [VotifierPlus/]: Debug: Sending vote to server1
31.05 10:44:28 [Server] Votifier I/O/INFO [VotifierPlus/]: Failed to send vote to server1(XX.XXX.XXX.X:0): Vote (from:MCTools.org username:xSlaze address:XX.XXX.XXX.XXX timeStamp:1653993868), ignore this if server is offline
31.05 10:44:28 [Server] Votifier I/O/INFO [STDERR/]: [com.bencodez.VotifierPlus.advancedcore.AdvancedCorePlugin:debug:330]: java.net.ConnectException: Connection refused (Connection refused)
31.05 10:44:28 [Server] Votifier I/O/INFO [STDERR/]: [com.bencodez.VotifierPlus.advancedcore.AdvancedCorePlugin:debug:330]: at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
31.05 10:44:28 [Server] Votifier I/O/INFO [STDERR/]: [com.bencodez.VotifierPlus.advancedcore.AdvancedCorePlugin:debug:330]: at java.base/java.net.AbstractPlainSocketImpl.doConnect([AbstractPlainSocketImpl.java:399](http://abstractplainsocketimpl.java:399/))
31.05 10:44:28 [Server] Votifier I/O/INFO [STDERR/]: [com.bencodez.VotifierPlus.advancedcore.AdvancedCorePlugin:debug:330]: at java.base/java.net.AbstractPlainSocketImpl.connectToAddress([AbstractPlainSocketImpl.java:242](http://abstractplainsocketimpl.java:242/))
31.05 10:44:28 [Server] Votifier I/O/INFO [STDERR/]: [com.bencodez.VotifierPlus.advancedcore.AdvancedCorePlugin:debug:330]: at java.base/java.net.AbstractPlainSocketImpl.connect([AbstractPlainSocketImpl.java:224](http://abstractplainsocketimpl.java:224/))
31.05 10:44:28 [Server] Votifier I/O/INFO [STDERR/]: [com.bencodez.VotifierPlus.advancedcore.AdvancedCorePlugin:debug:330]: at java.base/java.net.SocksSocketImpl.connect([SocksSocketImpl.java:392](http://sockssocketimpl.java:392/))
31.05 10:44:28 [Server] Votifier I/O/INFO [STDERR/]: [com.bencodez.VotifierPlus.advancedcore.AdvancedCorePlugin:debug:330]: at java.base/java.net.Socket.connect([Socket.java:609](http://socket.java:609/))
31.05 10:44:28 [Server] Votifier I/O/INFO [STDERR/]: [com.bencodez.VotifierPlus.advancedcore.AdvancedCorePlugin:debug:330]: at [com.vexsoftware.votifier.net.VoteReceiver.run](http://com.vexsoftware.votifier.net.votereceiver.run/)([VoteReceiver.java:198](http://votereceiver.java:198/))
31.05 10:44:28 [Server] Server thread/INFO [VotingPlugin/]: Received a vote from service site '[MCTools.org](http://mctools.org/)' by player 'xSlaze'!
31.05 10:44:28 [Server] Timer-4/INFO [Console/]: [Broadcast] Thanks xSlaze for voting on MCTools_org

I can't see why the port is coming up with 0? This is my config:

# Debug levels:
# NONE
# INFO
# EXTRA
DebugLevel: INFO
host: 0.0.0.0
port: 8192
Forwarding:
  server1:
    Enabled: true
    Host: 'IP OF OTHER SERVER WITHOUT PORT "25565"'
    Port: '8692' (PORT FOR NUVOTIFIER ON OTHER SERVER IS 8692, NOT 8192)
    Key: 'PUBLIC KEY FROM OTHER SERVER'

I'm trying to send it to another server that uses NuVotifier Sponge 1.12, which I know can cause problems, but I'm wondering if it would work if I can get it to send it with a port number instead of 0.

Not sure if im doing something wrong

this is my config and im trying to allow votes from the minecraft server lists site (MCSL) i think i may have data in the wrong spot?

DebugLevel: NONE
host: 0.0.0.0
port: 40993
Forwarding:
server1:
Enabled: true
Host: 'MCSL'
Port: '40993'
Key: ' the rsa public key'

Config read error

I am receiving the following startup error:

13.02 07:10:33 [Server] INFO Enabling VotifierPlus v1.0.5
13.02 07:10:33 [Server] WARN Loaded class com.comphenix.protocol.events.PacketListener from ProtocolLib v4.8.0-SNAPSHOT-b540 which is not a depend, softdepend or loadbefore of this plugin.
13.02 07:10:33 [Server] ERROR Error occurred while enabling VotifierPlus v1.0.5 (Is it up to date?)
13.02 07:10:33 [Server] INFO java.lang.NullPointerException: Cannot invoke "org.bukkit.configuration.file.FileConfiguration.isConfigurationSection(String)" because the return value of "com.bencodez.VotifierPlus.advancedcore.data.ServerData.getData()" is null
13.02 07:10:33 [Server] INFO at com.bencodez.VotifierPlus.advancedcore.api.permissions.PermissionHandler.<init>(PermissionHandler.java:36) ~[VotifierPlus.jar:?]
13.02 07:10:33 [Server] INFO at com.bencodez.VotifierPlus.advancedcore.AdvancedCorePlugin.loadHook(AdvancedCorePlugin.java:468) ~[VotifierPlus.jar:?]
13.02 07:10:33 [Server] INFO at com.bencodez.VotifierPlus.advancedcore.AdvancedCorePlugin.onEnable(AdvancedCorePlugin.java:853) ~[VotifierPlus.jar:?]
13.02 07:10:33 [Server] INFO at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[purpur-api-1.18.1-R0.1-SNAPSHOT.jar:?]
13.02 07:10:33 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[purpur-api-1.18.1-R0.1-SNAPSHOT.jar:?]
13.02 07:10:33 [Server] INFO at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:500) ~[purpur-api-1.18.1-R0.1-SNAPSHOT.jar:?]
13.02 07:10:33 [Server] INFO at org.bukkit.craftbukkit.v1_18_R1.CraftServer.enablePlugin(CraftServer.java:564) ~[purpur-1.18.1.jar:git-Purpur-1533]
13.02 07:10:33 [Server] INFO at org.bukkit.craftbukkit.v1_18_R1.CraftServer.enablePlugins(CraftServer.java:478) ~[purpur-1.18.1.jar:git-Purpur-1533]
13.02 07:10:33 [Server] INFO at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:732) ~[purpur-1.18.1.jar:git-Purpur-1533]
13.02 07:10:33 [Server] INFO at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:508) ~[purpur-1.18.1.jar:git-Purpur-1533]
13.02 07:10:33 [Server] INFO at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:349) ~[purpur-1.18.1.jar:git-Purpur-1533]
13.02 07:10:33 [Server] INFO at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1218) ~[purpur-1.18.1.jar:git-Purpur-1533]
13.02 07:10:33 [Server] INFO at net.minecraft.server.MinecraftServer.lambda$spin$1(MinecraftServer.java:322) ~[purpur-1.18.1.jar:git-Purpur-1533]
13.02 07:10:33 [Server] INFO at java.lang.Thread.run(Thread.java:833) ~[?:?]
13.02 07:10:33 [Server] INFO Disabling VotifierPlus v1.0.5
13.02 07:10:33 [Server] INFO Votifier disabled.

Config

host: 139.99.214.50
port: 36363
Forwarding:
  server1:
    Enabled: true
    Host: 139.99.214.50
    Port: 36363
    Key: 'the-key'

Purpur version: git-Purpur-1533 (MC: 1.18.1)
Java 17

Occurs even with a clean install and clean config.

Vote Forwarding Issue

Hello

I've got an issue with the Vote Forwarding, it seems like it registers the vote from the website onto the bungee, and then tries to send it to the other servers, but it forgets to input the port of the servers which is defined as port: '52094' inside the bungeeconfig.yml aswell on the other server as the same inside config.yml in votifierplus

There is no errors on the other two servers in the latest.log from VotifierPlus

Might it be a define issue in the java that forgets to define the port or simply doesn't get the port from the bungeeconfig.yml
It seems to define whatever you put into the Host: '0.0.0.0' as I tried with the IP of the server aswell instead of 0.0.0.0

18:25:48 [INFO] [VotifierPlus] Failed to send vote to oneblock(0.0.0.0:0): Vote (from:Minecraft-MP.com username:Anzisar address: timeStamp:1689783927), ignore this if server is offline
18:25:48 [INFO] [VotifierPlus] Failed to send vote to vanillaplus(0.0.0.0:0): Vote (from:Minecraft-MP.com username:Anzisar address: timeStamp:1689783927), ignore this if server is offline

Thanks in advance!

License?

Hello, I would like to know the license of this plugin. Thanks!

How to setup

How do I set this up on a bungeecord network with 3 other spigot servers? Is their a tutorial video on this? I know it iss similar to NUvotifier but i'm not really seeing where to setup.

Java 11 package javax.xml.bind does not exist

Source
According to the release-notes, Java 11 removed the Java EE modules:

java.xml.bind (JAXB) - REMOVED
  • Java 8 - OK
  • Java 9 - DEPRECATED
  • Java 10 - DEPRECATED
  • Java 11 - REMOVED

See JEP 320 for more info.

You can fix the issue by using alternate versions of the Java EE technologies. Simply add Maven dependencies that contain the classes you need:

<dependency>
  <groupId>javax.xml.bind</groupId>
  <artifactId>jaxb-api</artifactId>
  <version>2.3.0</version>
</dependency>
<dependency>
  <groupId>com.sun.xml.bind</groupId>
  <artifactId>jaxb-core</artifactId>
  <version>2.3.0</version>
</dependency>
<dependency>
  <groupId>com.sun.xml.bind</groupId>
  <artifactId>jaxb-impl</artifactId>
  <version>2.3.0</version>
</dependency>

Jakarta EE 8 update (Mar 2020)

Instead of using old JAXB modules you can fix the issue by using Jakarta XML Binding from Jakarta EE 8:

<dependency>
  <groupId>jakarta.xml.bind</groupId>
  <artifactId>jakarta.xml.bind-api</artifactId>
  <version>2.3.3</version>
</dependency>

[CONSOLE LOG]

Enabling VotifierPlus v1.0.1
23.04 04:54:05 [Server] WARN Enabled plugin with unregistered PluginClassLoader VotifierPlus v1.0.1
23.04 04:54:05 [Server] ERROR Error occurred while enabling VotifierPlus v1.0.1 (Is it up to date?)
23.04 04:54:05 [Server] INFO java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter
23.04 04:54:05 [Server] INFO at com.vexsoftware.votifier.crypto.RSAIO.load(RSAIO.java:96) ~[?:?]
23.04 04:54:05 [Server] INFO at com.vexsoftware.votifier.VotifierPlus.onPostLoad(VotifierPlus.java:93) ~[?:?]
23.04 04:54:05 [Server] INFO at com.ben12345rocks.VotifierPlus.AdvancedCore.AdvancedCorePlugin.onEnable(AdvancedCorePlugin.java:742) ~[?:?]
23.04 04:54:05 [Server] INFO at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[patched_1.15.2.jar:git-Paper-205]
23.04 04:54:05 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:364) ~[patched_1.15.2.jar:git-Paper-205]
23.04 04:54:05 [Server] INFO at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:483) ~[patched_1.15.2.jar:git-Paper-205]
23.04 04:54:05 [Server] INFO at net.Lenni0451.SpigotPluginManager.utils.PluginUtils.enablePlugin(PluginUtils.java:123) ~[?:?]
23.04 04:54:05 [Server] INFO at net.Lenni0451.SpigotPluginManager.commands.subs.Restart_Sub.execute(Restart_Sub.java:64) ~[?:?]
23.04 04:54:05 [Server] INFO at net.Lenni0451.SpigotPluginManager.commands.PluginManager_Command.lambda$0(PluginManager_Command.java:103) ~[?:?]
23.04 04:54:05 [Server] INFO at net.Lenni0451.SpigotPluginManager.commands.PluginManager_Command.onCommand(PluginManager_Command.java:113) ~[?:?]
23.04 04:54:05 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[patched_1.15.2.jar:git-Paper-205]
23.04 04:54:05 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[patched_1.15.2.jar:git-Paper-205]
23.04 04:54:05 [Server] INFO at org.bukkit.craftbukkit.v1_15_R1.CraftServer.dispatchCommand(CraftServer.java:752) ~[patched_1.15.2.jar:git-Paper-205]
23.04 04:54:05 [Server] INFO at org.bukkit.Bukkit.dispatchCommand(Bukkit.java:704) ~[patched_1.15.2.jar:git-Paper-205]
23.04 04:54:05 [Server] INFO at net.Lenni0451.SpigotPluginManager.commands.subs.Gui_Sub.onInventoryClick(Gui_Sub.java:214) ~[?:?]
23.04 04:54:05 [Server] INFO at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor43.execute(Unknown Source) ~[?:?]
23.04 04:54:05 [Server] INFO at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.15.2.jar:git-Paper-205]
23.04 04:54:05 [Server] INFO at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.15.2.jar:git-Paper-205]
23.04 04:54:05 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.15.2.jar:git-Paper-205]
23.04 04:54:05 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:607) ~[patched_1.15.2.jar:git-Paper-205]
23.04 04:54:05 [Server] INFO at net.minecraft.server.v1_15_R1.PlayerConnection.a(PlayerConnection.java:2333) ~[patched_1.15.2.jar:git-Paper-205]
23.04 04:54:05 [Server] INFO at net.minecraft.server.v1_15_R1.PacketPlayInWindowClick.a(SourceFile:32) ~[patched_1.15.2.jar:git-Paper-205]
23.04 04:54:05 [Server] INFO at net.minecraft.server.v1_15_R1.PacketPlayInWindowClick.a(SourceFile:10) ~[patched_1.15.2.jar:git-Paper-205]
23.04 04:54:05 [Server] INFO at net.minecraft.server.v1_15_R1.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:23) ~[patched_1.15.2.jar:git-Paper-205]
23.04 04:54:05 [Server] INFO at net.minecraft.server.v1_15_R1.TickTask.run(SourceFile:18) ~[patched_1.15.2.jar:git-Paper-205]
23.04 04:54:05 [Server] INFO at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[patched_1.15.2.jar:git-Paper-205]
23.04 04:54:05 [Server] INFO at net.minecraft.server.v1_15_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[patched_1.15.2.jar:git-Paper-205]
23.04 04:54:05 [Server] INFO at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[patched_1.15.2.jar:git-Paper-205]
23.04 04:54:05 [Server] INFO at net.minecraft.server.v1_15_R1.MinecraftServer.ba(MinecraftServer.java:1077) ~[patched_1.15.2.jar:git-Paper-205]
23.04 04:54:05 [Server] INFO at net.minecraft.server.v1_15_R1.MinecraftServer.executeNext(MinecraftServer.java:1070) ~[patched_1.15.2.jar:git-Paper-205]
23.04 04:54:05 [Server] INFO at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeAll(IAsyncTaskHandler.java:95) ~[patched_1.15.2.jar:git-Paper-205]
23.04 04:54:05 [Server] INFO at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:1203) ~[patched_1.15.2.jar:git-Paper-205]
23.04 04:54:05 [Server] INFO at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:946) ~[patched_1.15.2.jar:git-Paper-205]
23.04 04:54:05 [Server] INFO at java.lang.Thread.run(Thread.java:834) [?:?]
23.04 04:54:05 [Server] INFO Disabling VotifierPlus v1.0.1
23.04 04:54:05 [Server] INFO Votifier disabled.

Error message when trying to vote

Hey i downloaded VotifierPlus on the server , and when i try to setup the vote system and try to test the vote , and it showup this error :
io.netty.handler.timeout.ReadTimeoutException

Can anyone know how to solve it ?
here are the config information :
image

thanks for the help.

[VotifierPlus] Plugin VotifierPlus v1.0.6 generated an exception while executing task 2369

[06:42:33 WARN]: [VotifierPlus] Plugin VotifierPlus v1.0.6 generated an exception while executing task 2369
java.lang.NullPointerException: Cannot invoke "com.bencodez.VotifierPlus.advancedcore.api.user.userstorage.sql.Database.getTables()" because "this.database" is null
at com.bencodez.VotifierPlus.advancedcore.AdvancedCorePlugin.getSQLiteUserTable(AdvancedCorePlugin.java:355) ~[VotifierPlus.jar:?]
at com.bencodez.VotifierPlus.advancedcore.api.user.UserData.getSQLiteRow(UserData.java:232) ~[VotifierPlus.jar:?]
at com.bencodez.VotifierPlus.advancedcore.api.user.UserData.getKeys(UserData.java:193) ~[VotifierPlus.jar:?]
at com.bencodez.VotifierPlus.advancedcore.api.user.UserData.getKeys(UserData.java:178) ~[VotifierPlus.jar:?]
at com.bencodez.VotifierPlus.advancedcore.api.user.usercache.UserDataCache.cache(UserDataCache.java:47) ~[VotifierPlus.jar:?]
at com.bencodez.VotifierPlus.advancedcore.api.user.usercache.UserDataManager.cacheUser(UserDataManager.java:71) ~[VotifierPlus.jar:?]
at com.bencodez.VotifierPlus.advancedcore.api.user.AdvancedCoreUser.cache(AdvancedCoreUser.java:206) ~[VotifierPlus.jar:?]
at com.bencodez.VotifierPlus.advancedcore.api.user.UserData.getString(UserData.java:274) ~[VotifierPlus.jar:?]
at com.bencodez.VotifierPlus.advancedcore.api.user.UserData.getString(UserData.java:241) ~[VotifierPlus.jar:?]
at com.bencodez.VotifierPlus.advancedcore.api.user.AdvancedCoreUser.isCheckWorld(AdvancedCoreUser.java:644) ~[VotifierPlus.jar:?]
at com.bencodez.VotifierPlus.advancedcore.listeners.WorldChangeEvent$1.run(WorldChangeEvent.java:47) ~[VotifierPlus.jar:?]
at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.18.1.jar:git-Paper-204]
at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.18.1.jar:git-Paper-204]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.18.1.jar:git-Paper-204]
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) ~[?:?]

java.lang.NullPointerException: Cannot invoke "com.vexsoftware.votifier.net.VoteReceiver.shutdown()" because "this.voteReceiver" is null

[18:20:41 WARN]: [VotifierPlus] Plugin VotifierPlus v1.0.7 generated an exception while executing task 366185
java.lang.NullPointerException: Cannot invoke "com.vexsoftware.votifier.net.VoteReceiver.shutdown()" because "this.voteReceiver" is null
at com.vexsoftware.votifier.VotifierPlus.reload(VotifierPlus.java:294) ~[VotifierPlus.jar:?]
at com.vexsoftware.votifier.commands.CommandLoader$2.execute(CommandLoader.java:69) ~[VotifierPlus.jar:?]
at com.bencodez.VotifierPlus.advancedcore.api.command.CommandHandler$1.run(CommandHandler.java:446) ~[VotifierPlus.jar:?]
at org.bukkit.craftbukkit.v1_19_R2.scheduler.CraftTask.run(CraftTask.java:101) ~[pufferfish-1.19.3.jar:git-Pufferfish-55]
at org.bukkit.craftbukkit.v1_19_R2.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[pufferfish-1.19.3.jar:git-Pufferfish-55]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[pufferfish-1.19.3.jar:?]
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) ~[?:?]

Votifier error

[05:33:43 ERROR]: [VotifierPlus] Error initializing vote receiver. Please verify that the configured
[05:33:43 ERROR]: [VotifierPlus] IP address and port are not already in use. This is a common problem
[05:33:43 ERROR]: [VotifierPlus] with hosting services and, if so, you should check with your hosting provider.
[05:33:43 WARN]: java.net.BindException: Cannot assign requested address
[05:33:43 WARN]: at java.base/sun.nio.ch.Net.bind0(Native Method)
[05:33:43 WARN]: at java.base/sun.nio.ch.Net.bind(Net.java:555)
[05:33:43 WARN]: at java.base/sun.nio.ch.Net.bind(Net.java:544)
[05:33:43 WARN]: at java.base/sun.nio.ch.NioSocketImpl.bind(NioSocketImpl.java:648)
[05:33:43 WARN]: at java.base/java.net.ServerSocket.bind(ServerSocket.java:388)
[05:33:43 WARN]: at java.base/java.net.ServerSocket.bind(ServerSocket.java:342)
[05:33:43 WARN]: at VotifierPlus.jar//com.vexsoftware.votifier.net.VoteReceiver.initialize(VoteReceiver.java:87)
[05:33:43 WARN]: at VotifierPlus.jar//com.vexsoftware.votifier.net.VoteReceiver.(VoteReceiver.java:81)
[05:33:43 WARN]: at VotifierPlus.jar//com.vexsoftware.votifier.VotifierPlus$2.(VotifierPlus.java:116)
[05:33:43 WARN]: at VotifierPlus.jar//com.vexsoftware.votifier.VotifierPlus.loadVoteReceiver(VotifierPlus.java:116)
[05:33:43 WARN]: at VotifierPlus.jar//com.vexsoftware.votifier.VotifierPlus.reload(VotifierPlus.java:295)
[05:33:43 WARN]: at VotifierPlus.jar//com.vexsoftware.votifier.commands.CommandLoader$2.execute(CommandLoader.java:69)
[05:33:43 WARN]: at VotifierPlus.jar//com.bencodez.VotifierPlus.advancedcore.api.command.CommandHandler$1.run(CommandHandler.java:446)
[05:33:43 WARN]: at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftTask.run(CraftTask.java:101)
[05:33:43 WARN]: at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57)
[05:33:43 WARN]: at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
[05:33:43 WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[05:33:43 WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[05:33:43 WARN]: at java.base/java.lang.Thread.run(Thread.java:833)
[05:33:43 ERROR]: [VotifierPlus] Votifier did not initialize properly!
[05:33:43 INFO]: VotifierPlus 3.5.3 reloaded

votifier issue

I have tried running this plugin with multiple different ports but I am receiving the same error. I've also allowed the ports in my firewall. No matter what I seem to do the plugin is not working. I have also allowed the port to go through my firewall, but I do see why it is not working properly. Please assist.

tab complete votifierplus critical error

I got this when attempting to try out some commands before setup.

[03:33:44] [Server thread/ERROR]: Exception when adamitude attempted to tab complete votifierplus 
org.bukkit.command.CommandException: Unhandled exception during tab completion for command '/votifierplus ' in plugin VotifierPlus v1.0.1
	at org.bukkit.command.PluginCommand.tabComplete(PluginCommand.java:150) ~[paper.jar:git-Paper-161]
	at org.bukkit.command.Command.tabComplete(Command.java:93) ~[paper.jar:git-Paper-161]
	at org.bukkit.command.SimpleCommandMap.tabComplete(SimpleCommandMap.java:244) ~[paper.jar:git-Paper-161]
	at org.bukkit.craftbukkit.v1_15_R1.CraftServer.tabCompleteCommand(CraftServer.java:1757) ~[paper.jar:git-Paper-161]
	at org.bukkit.craftbukkit.v1_15_R1.CraftServer.tabComplete(CraftServer.java:1729) ~[paper.jar:git-Paper-161]
	at org.bukkit.craftbukkit.v1_15_R1.command.BukkitCommandWrapper.getSuggestions(BukkitCommandWrapper.java:49) ~[paper.jar:git-Paper-161]
	at com.mojang.brigadier.tree.ArgumentCommandNode.listSuggestions(ArgumentCommandNode.java:71) ~[paper.jar:git-Paper-161]
	at com.mojang.brigadier.CommandDispatcher.getCompletionSuggestions(CommandDispatcher.java:596) ~[paper.jar:git-Paper-161]
	at com.mojang.brigadier.CommandDispatcher.getCompletionSuggestions(CommandDispatcher.java:579) ~[paper.jar:git-Paper-161]
	at net.minecraft.server.v1_15_R1.PlayerConnection.lambda$a$3(PlayerConnection.java:566) ~[paper.jar:git-Paper-161]
	at net.minecraft.server.v1_15_R1.TickTask.run(SourceFile:18) ~[paper.jar:git-Paper-161]
	at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[paper.jar:git-Paper-161]
	at net.minecraft.server.v1_15_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[paper.jar:git-Paper-161]
	at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[paper.jar:git-Paper-161]
	at net.minecraft.server.v1_15_R1.MinecraftServer.ba(MinecraftServer.java:1038) ~[paper.jar:git-Paper-161]
	at net.minecraft.server.v1_15_R1.MinecraftServer.executeNext(MinecraftServer.java:1031) ~[paper.jar:git-Paper-161]
	at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeAll(IAsyncTaskHandler.java:95) ~[paper.jar:git-Paper-161]
	at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:1172) ~[paper.jar:git-Paper-161]
	at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:934) ~[paper.jar:git-Paper-161]
	at java.lang.Thread.run(Thread.java:832) [?:?]
Caused by: java.lang.IllegalStateException: zip file closed
	at java.util.zip.ZipFile.ensureOpen(ZipFile.java:849) ~[?:?]
	at java.util.zip.ZipFile.getEntry(ZipFile.java:338) ~[?:?]
	at java.util.zip.ZipFile$1.getEntry(ZipFile.java:1068) ~[?:?]
	at java.util.jar.JarFile.getEntry0(JarFile.java:576) ~[?:?]
	at java.util.jar.JarFile.getEntry(JarFile.java:505) ~[?:?]
	at java.util.jar.JarFile.getJarEntry(JarFile.java:467) ~[?:?]
	at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:133) ~[paper.jar:git-Paper-161]
	at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:100) ~[paper.jar:git-Paper-161]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:589) ~[?:?]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
	at com.ben12345rocks.VotifierPlus.AdvancedCore.CommandAPI.CommandHandler.hasPerm(CommandHandler.java:290) ~[?:?]
	at com.ben12345rocks.VotifierPlus.AdvancedCore.CommandAPI.CommandHandler.getTabCompleteOptions(CommandHandler.java:237) ~[?:?]
	at com.ben12345rocks.VotifierPlus.AdvancedCore.CommandAPI.TabCompleteHandler.getTabCompleteOptions(TabCompleteHandler.java:74) ~[?:?]
	at com.vexsoftware.votifier.commands.VotifierPlusTabCompleter.onTabComplete(VotifierPlusTabCompleter.java:36) ~[?:?]
	at org.bukkit.command.PluginCommand.tabComplete(PluginCommand.java:138) ~[paper.jar:git-Paper-161]
	... 19 more

and again

[03:33:50] [Server thread/ERROR]: Exception when adamitude attempted to tab complete votifierplus 
org.bukkit.command.CommandException: Unhandled exception during tab completion for command '/votifierplus ' in plugin VotifierPlus v1.0.1
	at org.bukkit.command.PluginCommand.tabComplete(PluginCommand.java:150) ~[paper.jar:git-Paper-161]
	at org.bukkit.command.Command.tabComplete(Command.java:93) ~[paper.jar:git-Paper-161]
	at org.bukkit.command.SimpleCommandMap.tabComplete(SimpleCommandMap.java:244) ~[paper.jar:git-Paper-161]
	at org.bukkit.craftbukkit.v1_15_R1.CraftServer.tabCompleteCommand(CraftServer.java:1757) ~[paper.jar:git-Paper-161]
	at org.bukkit.craftbukkit.v1_15_R1.CraftServer.tabComplete(CraftServer.java:1729) ~[paper.jar:git-Paper-161]
	at org.bukkit.craftbukkit.v1_15_R1.command.BukkitCommandWrapper.getSuggestions(BukkitCommandWrapper.java:49) ~[paper.jar:git-Paper-161]
	at com.mojang.brigadier.tree.ArgumentCommandNode.listSuggestions(ArgumentCommandNode.java:71) ~[paper.jar:git-Paper-161]
	at com.mojang.brigadier.CommandDispatcher.getCompletionSuggestions(CommandDispatcher.java:596) ~[paper.jar:git-Paper-161]
	at com.mojang.brigadier.CommandDispatcher.getCompletionSuggestions(CommandDispatcher.java:579) ~[paper.jar:git-Paper-161]
	at net.minecraft.server.v1_15_R1.PlayerConnection.lambda$a$3(PlayerConnection.java:566) ~[paper.jar:git-Paper-161]
	at net.minecraft.server.v1_15_R1.TickTask.run(SourceFile:18) ~[paper.jar:git-Paper-161]
	at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[paper.jar:git-Paper-161]
	at net.minecraft.server.v1_15_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[paper.jar:git-Paper-161]
	at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[paper.jar:git-Paper-161]
	at net.minecraft.server.v1_15_R1.MinecraftServer.ba(MinecraftServer.java:1038) ~[paper.jar:git-Paper-161]
	at net.minecraft.server.v1_15_R1.MinecraftServer.executeNext(MinecraftServer.java:1031) ~[paper.jar:git-Paper-161]
	at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:119) ~[paper.jar:git-Paper-161]
	at net.minecraft.server.v1_15_R1.MinecraftServer.sleepForTick(MinecraftServer.java:1015) ~[paper.jar:git-Paper-161]
	at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:938) ~[paper.jar:git-Paper-161]
	at java.lang.Thread.run(Thread.java:832) [?:?]
Caused by: java.lang.IllegalStateException: zip file closed
	at java.util.zip.ZipFile.ensureOpen(ZipFile.java:849) ~[?:?]
	at java.util.zip.ZipFile.getEntry(ZipFile.java:338) ~[?:?]
	at java.util.zip.ZipFile$1.getEntry(ZipFile.java:1068) ~[?:?]
	at java.util.jar.JarFile.getEntry0(JarFile.java:576) ~[?:?]
	at java.util.jar.JarFile.getEntry(JarFile.java:505) ~[?:?]
	at java.util.jar.JarFile.getJarEntry(JarFile.java:467) ~[?:?]
	at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:133) ~[paper.jar:git-Paper-161]
	at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:100) ~[paper.jar:git-Paper-161]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:589) ~[?:?]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
	at com.ben12345rocks.VotifierPlus.AdvancedCore.CommandAPI.CommandHandler.hasPerm(CommandHandler.java:290) ~[?:?]
	at com.ben12345rocks.VotifierPlus.AdvancedCore.CommandAPI.CommandHandler.getTabCompleteOptions(CommandHandler.java:237) ~[?:?]
	at com.ben12345rocks.VotifierPlus.AdvancedCore.CommandAPI.TabCompleteHandler.getTabCompleteOptions(TabCompleteHandler.java:74) ~[?:?]
	at com.vexsoftware.votifier.commands.VotifierPlusTabCompleter.onTabComplete(VotifierPlusTabCompleter.java:36) ~[?:?]
	at org.bukkit.command.PluginCommand.tabComplete(PluginCommand.java:138) ~[paper.jar:git-Paper-161]
	... 19 more

any ideas as to what's causing this? Thanks!

VotifierEvent not firing on 1.20.4

Hello. I'm developing a plugin that needs to receive votes. I installed the plugin, added your dependency, setup the port forward and all that. I added this to my onEnable

getServer().getPluginManager()
        .registerEvents(new VoteListener(), this);

and the VoteListener class

public class VoteListener implements Listener {

    @EventHandler(priority= EventPriority.NORMAL)
    public void onVotifierEvent(VotifierEvent event) {
        Vote vote = event.getVote();
        Logger.getAnonymousLogger().info("Received vote for " + vote.getUsername());
        Player player = Bukkit.getPlayer(vote.getUsername());
        try (Session session = DbFactory.getSessionFactory().openSession()) {
            HibernateCriteriaBuilder builder = session.getCriteriaBuilder();
            JpaCriteriaQuery query = builder.createQuery(Votes.class);
            JpaRoot root = query.from(Votes.class);
            session.beginTransaction();
            query.select(root);
            query.where(
                    builder.equal(root.get("UserGuid"), player.getUniqueId())
            );
            List results = session.createQuery(query).getResultList();
            Votes votes;
            if (results.stream().count() == 0)
                votes = new Votes(player.getUniqueId(), 0);
            else votes = (Votes) results.get(0);
            votes.SetVotes(votes.GetVotes() + 1);
            votes.SetVoteTokens(votes.GetVoteTokens() + 1);
            session.saveOrUpdate(votes);
            session.getTransaction().commit();
        } catch (Throwable e) {
            throw e;
        }
    }
}

However neither the minestatus votifier tester nor the in game test command trigger the logger or a breakpoint in the event handler. I am positive the port forward and all that is working because I get an error about the vote not being signed when I just punch the ip/port into my browser

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.