Vote GUI Plugin

Discussion in 'Plugin Requests' started by alnoise, Mar 8, 2022.

Thread Status:
Not open for further replies.
  1. Offline

    alnoise

    Plugin category: Essentials

    Minecraft version: 1.12.2

    Suggested name: VoteGUI

    What I want: I'd love a plugin that allows players to do /vote and instead of a list of websites, a GUI pops up that allows players to click on items that redirects them to the voting website. I'd love it to hook into NuVotifier if possible.

    It would also be awesome if the items changed after the player has voted and changed back after a specific time when they're able to vote again. For example have a green concrete block when a player is allowed to vote, which turns to red concrete after they have voted on that website.

    I know that there's a few plugins out there that do something similar, but I'm looking for something more custom and that works on my version.

    Ideas for commands: /vote

    Ideas for permissions: vote.gui

    When I'd like it by: As soon as possible but no rush! [cake]
     
  2. Offline

    Orespawn

    The GUI would need to post the clickable link in chat, which users would need to click, then it would redirect them to the website, this is a client-sided restriction and I don't know of any way around it. It's sadly a security restriction; so I personally think the best way to implement this would be either list all the vote links in chat (or even better on a website, faster to open them all.) like most servers do, then I can have a timer-like GUI telling you how long until each vote refreshes, which you would set up for each website in a config.

    If that's still okay with you, I can make this. If so get in touch with me or let me know how I can contact you quicker, I want to make a config file that fits all of your needs, and communication here can be a bit slow.
     
    Last edited: Mar 10, 2022
  3. Offline

    alnoise

    That sucks, even if it prompts them on which site they're going to like it usually does when you click a website from chat? That's alright if it's not possible though. If you can, I'd still love a plugin that makes it so when a player clicks on an item in a GUI it gives them the corresponding link in chat, instead of redirecting them directly to the website. Then having the item change when they're on a cooldown and back again when that cooldown has expired.
     
    Last edited by a moderator: Mar 10, 2022
  4. Offline

    Orespawn

    Yeah it won't just let me pop up that link page from clicking a button in the GUI. Everything else I can do though! I'll let you know when I get it done, need to implement the timer.

    So unfortunate I can't just open the link from the GUI; I swear I've seen it done before but there's nothing in spigot to make it happen.

    Ooh, also, what functionality do you want from hooking into NuVotifier?
     
    Last edited: Mar 10, 2022
  5. Offline

    alnoise

    I know! That would have been so cool! It's all good though, still a huge improvement over a list in the chat haha. Also sorry if my wording was confusing, I just wanted the plugin to be compatible with NuVotifier and SuperbVote. I didn't need to use any of their features :)
     
  6. Offline

    Orespawn

  7. Offline

    alnoise

    Just got to try it for the first time, it doesn't seem like the plugin is loading for me. No config file was generated and when I do /vote nothing happens. Not even my text comes up anymore haha
     
Thread Status:
Not open for further replies.

Share This Page