VoteRight - Sponge's First Votifier Listener [Discontinued]

Love it! I really admire the work and effort you put into this plugin! At the beginning of Sponge people would quit their plugins because of all the bugs. But you! You work very hard to make sure your users are satisfied and I really appreciate it! Cant wait to use the plugin soon!

#VoteRight - 1.0.0
It’s finally here! The update ~0.01%-0.02% of the sponge community has been waiting for!

Change Log:

  • Decided on 1.0.0 instead of 2.0
  • Re-wrote VoteRight from the bottom up
  • Improved the command system
  • Moved all schemas to a single, seperate file
  • Made everything case-sensitive
  • Added /votetop command
  • Added more VoteTrigger types
  • Made the entries in a schema more versatile
  • Changed money schemas so that they can support multiple transactions
  • Re-wrote the tutorials to reflect the new format, and put them in markdown (in the main post) to prepare for transition to Ore
  • Moved VoteCounts and OfflineVotes to the data.cjlsc file, which is like a database but not really. It’s compressed and fast, and that’s all you need to know. :slight_smile:
  • Offline voting now works even if the player hasn’t joined the server
  • Added advanced command help menu, via “/voteright help”
  • Made VoteRight expandable

Migrating:
VoteRight 1.0.0 creates a different configuration folder than previous versions. Run the command “/voteright migrate” ONCE to migrate from the pre-1.0.0 config format to the new one.

Downloads:
VoteRight
StarAPI

1 Like

Saw the update but haven’t tested. Been using the alternative simplevotelistener for a while now but I needed more features such as offline voting, chanced vote rewards, and /votetop so I’m looking forward to updating soon. Has anyone tested this yet btw and can tell me if it works fine? :smiley:

Not sure if I’m doing something wrong but, the config and schemas file remains empty no matter what commands I input.
I’m quite confused on how to use this. Say if I want to reward players with 2 items and some money per vote, how would I go about configuring that? Thanks in advance.

@Ashiya

The configs only save if you have “true” as the very last argument in the command.

/vr schema create [args] true will create the Schema and then save.

See the in-game help menu if your confused (/vr help)

I typed in /vr create schema item true
Then typed /vr save to make sure it saved, restarted the server and the file is still empty :confused:

@Ashiya
Okay, I’ll need the usual bug fix info:

  • Server log
  • Sponge, Star, and VoteRight version
  • In the star directory, can you upload the data.cjlsc file

Edit:
Also, what messages are displayed after you type the command?

Edit 2:
Nevermind… I’m feeling dumb now. I BUG TESTED SO MANY TIMES WHY IS THIS HAPPENING, NOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.

Anyways, I should roll-out an update to fix this soon.

Oh ok, thanks. I was seriously confused because I wasn’t getting any errors and I got the “Successful” message everytime but the file remained empty.

So it looks like I’m not saving the default config and schema files, which is why they’re empty, and that the error message for the command is messed up, so it says “Successful” even though it’s not.

##VoteRight 1.0.1 (Bug Fixes)
Changelog:

  • VoteRight:
  • Fixed a command error message

  • StarAPI
  • Fixed bug when setting up default configs
  • Fixed command parsing bug

####Downloads:


@Ashiya
The reason that the command you were running wasn’t working is that it is case-sensitive, so “item” actually has to be “ITEM.” It should have been telling you that, but it wasn’t, so sorry.

There’s no /vote command? also tried /voteright:vote
How will players be able to see this part
VoteMessage= [ //<-- The vote message is an array of strings or arrays.
["Vote at ", “example.com”, “!”], //<-- Separate a single line message if it has a link in it. The link will be clickable.
“Another line of text!”, //<-- Each entry is another line
“&bColors are supported” //<-- Colors are supported in the messages

There is a /vote command… that I forgot to register with sponge. I’m currently occupied, and can’t access my computer, but I’ll fix this ASAP

##VoteRight 1.0.2 (Bug Fixes #2)
Changelog:

  • Actually register the vote command

Downloads:

  • VoteRight
  • StarAPI (You don’t have to re-download Star for this update, so long as you are already updated to Star 1.6.10)
1 Like

Thanks for the fix :smiley: @Socratic_Phoenix but uhmmm the links aren’t clickable.

VoteMessage= [
    ["&aVote for the server to get rewards! ","miragecraft.xyz/vote"]
]

Tried it with www. and http:// but doesn’t work
Tried doing it on another line, doesn’t work as well

http://miragecraft.xyz/vote should work. What message is actually shown on /vote?

(It’s triggered by the http, i’ll fix the example)

Edit: just tested “http://miragecraft.xyz/vote” and it’s clickable for me.

Hmm I did try http:// but followed by www = http://www.miragecraft.xyz/vote It just showed "Vote for the server to get rewards! " followed by the link in white color, unclickable. Let me try your suggestion.

Edit: So uhh still unable to click the link using http://miragecraft.xyz/vote

@Socratic_Phoenix tagging you just incase you saw the reply but not the edit.

Can I see your config?

VoteMessage= [
    ["&aVote for the server to get rewards! ","http://miragecraft.xyz/vote"]
]
Voting= {
    Schemas= [
        "announce",
        "money",
        "luck1announce",
        "luck1money"
    ]
}
OfflineVoting= {
    Schemas= [
        "money"
        "offlineannounce"
    ]
    Enabled= true
}
Counting= {
    Triggers= [
    ]
    Enabled= true
}

What’s your sponge, forge, star, and voteright version?

I’m on spongeforge 1424, forge 1890, star 1.6.10 and voteright 1.0.2

So pretty much all latest version.