[Discontinued] SimpleVotifierListener [v0.6.5]

Thanks! :smiley:

0.6.4 does not work with updated spongeforge for 1.10.2, filed an issue.

use 0.6.2, itā€™s the only working version for me.

Or use another votifier listener such as voteright or seriousvote.

I think this is being discontinued, but I may be wrong. Donā€™t take my word for it.

pretty sure voteright is discontinued alsoā€¦

Not discontinued.

2 Likes

Release v0.6.5:

Minecraft 1.10.2 - Tested on SpongeAPI 5.1.0
Minecraft 1.11 - Tested on SpongeAPI 6.0.0

Changes:

  • Added a build specifically for API 5.1.0 (MC 1.10.2)

Enjoy this Update! :smile:

1 Like

Great :smiley: Good to know

Set up nuvotifier and Votifier listener. Both work well and rewards were given out. So, added pixelmon rewards:

 commands="give @p pixelmon:poke_ball 4,give @p pixelmon:great_ball 1,give @p pixelmon:rare_candy 1,give @p pixelmon:potion 1,give @p pixelmon:potion 1,"

But when doing so. Once I voted, I got the following on the console:

[11:11:01] [pool-2-thread-2/INFO] [nucleus]: Server ran the command: /give Tridaak pixelmon:poke_ball 4
[11:11:01] [pool-2-thread-2/INFO] [STDERR]: [java.lang.Thread:dumpStack:1333]: java.lang.Exception: Stack trace
[11:11:01] [pool-2-thread-2/INFO] [STDERR]: [java.lang.Thread:dumpStack:1333]:  at java.lang.Thread.dumpStack(Thread.java:1333)
[11:11:01] [pool-2-thread-2/INFO] [STDERR]: [java.lang.Thread:dumpStack:1333]:  at net.minecraft.entity.EntityTracker.handler$onAddEntityToTracker$zda000(EntityTracker.java:76)
[11:11:01] [pool-2-thread-2/INFO] [STDERR]: [java.lang.Thread:dumpStack:1333]:  at net.minecraft.entity.EntityTracker.func_72785_a(EntityTracker.java)
[11:11:01] [pool-2-thread-2/INFO] [STDERR]: [java.lang.Thread:dumpStack:1333]:  at net.minecraft.entity.EntityTracker.func_72786_a(EntityTracker.java:139)
[11:11:01] [pool-2-thread-2/INFO] [STDERR]: [java.lang.Thread:dumpStack:1333]:  at net.minecraft.world.ServerWorldEventHandler.func_72703_a(ServerWorldEventHandler.java:33)
[11:11:01] [pool-2-thread-2/INFO] [STDERR]: [java.lang.Thread:dumpStack:1333]:  at net.minecraft.world.World.func_72923_a(World.java:1142)
[11:11:01] [pool-2-thread-2/INFO] [STDERR]: [java.lang.Thread:dumpStack:1333]:  at net.minecraft.world.WorldServer.func_72923_a(WorldServer.java:1118)
[11:11:01] [pool-2-thread-2/INFO] [STDERR]: [java.lang.Thread:dumpStack:1333]:  at net.minecraft.world.WorldServer.onSpongeEntityAdded(WorldServer.java:1389)
[11:11:01] [pool-2-thread-2/INFO] [STDERR]: [java.lang.Thread:dumpStack:1333]:  at net.minecraft.world.WorldServer.forceSpawnEntity(WorldServer.java:1435)
[11:11:01] [pool-2-thread-2/INFO] [STDERR]: [java.lang.Thread:dumpStack:1333]:  at net.minecraft.world.WorldServer.forceSpawnEntity(WorldServer.java:1418)
[11:11:01] [pool-2-thread-2/INFO] [STDERR]: [java.lang.Thread:dumpStack:1333]:  at org.spongepowered.common.event.tracking.phase.TrackingPhase.spawnEntityOrCapture(TrackingPhase.java:284)
[11:11:01] [pool-2-thread-2/INFO] [STDERR]: [java.lang.Thread:dumpStack:1333]:  at org.spongepowered.common.event.tracking.phase.general.GeneralPhase.spawnEntityOrCapture(GeneralPhase.java:357)
[11:11:01] [pool-2-thread-2/INFO] [STDERR]: [java.lang.Thread:dumpStack:1333]:  at org.spongepowered.common.event.tracking.CauseTracker.spawnEntity(CauseTracker.java:558)
...

Did get the items. But worried about what this might mean, and if I set up the commands correctly (by default, the plugin it has minecraft: before the commands. Canā€™t test because already voted todayā€¦).

Hmmā€¦ that is odd indeed. I will look into it

I really like this plugin and was wondering if there was a way to set percentages for the random items. Say like its a 50% chance to get item A 25% chance to get item B and 25% chance to get Item C. As well as if there is a way to set a custom message for when someone votes. Thanks

Think something like this should work for the chance thing.

commands="give @p minecraft:a,give @p minecraft:a,give @p minecraft:b,give @p minecraft:c"

Although do agree there should be a weight thing (instead of percentage, since there could be problems with percentages not adding up to 100%), something like ({50}give @p minecraft:a,{25}give @p minecraft:b,{25}give @p minecraft:c).

And donā€™t think thereā€™s a way to add a custom message when someone votes.

The only problem i see with your chance system is that instead of receiving 2 items they could receive the same item twice. otherwise it would work.

How to do you forward a method of voting on this, with nuvotifer?

Voting is handled by your Votifier plugins, ie. nuvotifier or normal votifier.

The plugin simply listens to the event and gives the player rewards.

Having issues with the votifier. After a player votes this shows up in console:

[VotifierListener]: YOYOK9 just voted and got a reward! You can too with /vote
Server thread/INFO - nucleus 03/23/2017 22:42:20
22:42:20Server ran the command: / give YOYOK9layer minecraft:ender_pearl 8
Server thread/INFO 03/23/2017 22:42:20
22:42:20Unknown command. Try /help for a list of commands
Server thread/INFO - nucleus 03/23/2017 22:42:20
22:42:20Server ran the command: / give YOYOK9layer minecraft:ender_pearl 8
Server thread/INFO 03/23/2017 22:42:20
22:42:20Unknown command. Try /help for a list of commands

========================
My config looks like this:
"give @player minecraf:diamond 2, give @player minecraft:ender_pearl 8, give @player minecraft:diamond_sword 1"
I have tried to remove the spaces before the give as well as remove the ā€œlayerā€ in @player. but anytime someone votes the file refreshes back to that. Any Ideas?

spongeforge-1.10.2-2254-5.2.0-BETA-2231
nuvotifier-universal-2.3.3
SimpleVotifierListener-1.10.2-0.6.5

It should be @p and no spaces before the give

iā€™ve tried that when someone votes and I re open the config it reloads back to thatā€¦

Not understanding what you meanā€¦ your config seems okay although you put a space between the / and the command.

this should read ,give @p minecraft:ender_pearl 8

First of all love the plugin! Works beautifully!
I do have a small issue tho.
Iam trying to do the command /crate votecrate key @p
The adjustbonusclaimblocks works fine but not the crate

Here is my script:
rewards {
# Number of random rewards a player will receive.
amount=3
commands=ā€œcrate votecrate key @pā€
commands=ā€œadjustbonusclaimblocks @p 50ā€
# Mode for giving rewards. Set to ā€˜allā€™ to give one of each, set to ā€˜randomā€™ to give ā€˜amountā€™ number of random rewards.
mode=all
money {
# Maximum amount of money a player can get for voting.
maximum=200
# Minimum amount of money a player can get for voting.
minimum=100
}
}

Thank you so much for the help!

Would it be possible for you to add offline player voting support? So that people still get a reward when they are not online? Currently it does show the message that the person has voted but their balance doesnā€™t update.