SVL

SimpleVoteListener


SVL requires Java 7

SVL has been discontinued. Developers, feel free to copy code snippets if you would like to make a new version of this plugin.


Description

SimpleVoteListener was designed to be as lightweight as possible and make endless possibilities. SimpleVoteListener can perform commands, broadcast messages, and do everything you could possibly need it to do.


PLANNED Features

  • Vault Economy support.
  • Bungeefier and Spigot support.
  • Public broadcasts.
  • Private messaging to voting players.
  • Offline voting.
  • Unknown player blocking. (Vote will not go through unless player has joined server previously)
  • Configurable
  • Permissions can be given and taken upon vote.
  • Items can be given to player.
  • Commands can be run through console upon voting.
  • Service-specific awards.
  • Permission-specific awards.
  • Vote counting.
  • Vote count awards.
  • Timed commands.
  • Timed commands continue after restarting server.
  • Config variables.
  • Color codes in config.

Installation

Requires Votifier

  1. Drop SimpleVoteListener.jar into your plugins directory.
  2. Reload or restart your server.
  3. Done!

note: You don't need to do anything special to get SimpleVoteListener to connect to Votifier


Planned Commands

/svl reload - Reloads configuration.

/svl test - Tests vote process.

/svl debug - Toggles debug mode for development.


Usage

Sample usage:

# Ayyy don't touch this it will ruin your config.
version: '1.1'

debug: false
vault: false
time-format: 'HH:mm:ss'

public-broadcast: '&e%player% voted from %service%!'
private-message: '&aThanks, &c%player%&a, for voting!'

# Awards given to player when player is available.
player-awards:
# Awarded to player no matter what.
    money: 50
    permissions:
        - 'wow.cool.amazing'
    items:
        - 'WOOD:64'
    commands:
        # You can add timed commands by putting a time
        # in parenthesis followed by h/m/s: hours/minutes/seconds
        - 'group add %player% voter'
        - 'group remove %player% voter(24h)'
    specific-awards:
    # Awarded to player if applicable (stacks with general player awards)
        service:
            PlanetMinecraft:
                money: 100
                permission:
                    - 'wow.pmc.amazing'
                items:
                    - 'DIAMOND:1'
                commands:
                    - 'permission remove %player% wow.pmc.amazing(24h)'
        permissions:
            groupplugin.vip:
                money: 9001
                permission:
                    - 'wow.omg.incredible'
                items:
                    - 'DIAMOND:400'
                commands:
                    - 'permission remove %player% wow.omg.incredible(24h)'
            groupplugin.user:
                money: 20
                permission:
                    - 'wow.okay.umm'
                items:
                    - 'WOOD:64'
                    - 'DIAMOND_PICKAXE:1'
                commands:
                    - 'permission remove %player% wow.okay.umm(10m)'
        votes:
            10:
                money: 20
                permission:
                    - 'wow.okay.umm'
                items:
                    - 'WOOD:64'
                    - 'DIAMOND_PICKAXE:1'
                commands:
                    - 'permission remove %player% wow.okay.umm(25s)'
  • %name% - Username of the player. Not the nickname.
  • %ip% - IP Address of the player who voted
  • %time% - Not sure what format of time, Votifier handles the format.
  • %service% - Service used when voting, eg. "PlanetMinecraft.com"
  • %votes% - Amount of times player has voted.
  • %connection - Returns "online" or "offline" accordingly.

Troubleshooting

Nothing is Happening on Vote

  • Check to make sure the port you are using in your Votifier config is not already in use.
  • Read the Troubleshooting section on the Votifier page.

Plugin not generating files

  • Make sure your plugins folder isn't restricted. Usually this is not the case if other plugins can write files to it.
  • Try using Java 7 instead of Java 6.
  • Check that you're using the correct version of CraftBukkit corresponding to the version of SVL.

Config not working

  • Parse your config by pasting it. If there is an error it will tell you the line and column number!
  • Make sure you are using correct variables (listed above)

Commands not being run

  • Check to make sure you have a plugin that can run the commands you are trying to run!
  • Some plugins don't let certain commands run from the console, and there is nothing that can be done except look for a different plugin!

Connecting to Votifier but not SVL

  • Make sure SVL started up without errors and is enabled by typing /pl (it should be green in the list).
  • Make sure config works by checking advanced setups section of Configuration Page

Still not working?/Question not answered?

Leave a comment with the following:

  • SVL version
  • Votifier version
  • CraftBukkit version
  • Errors in console (if one is given)
  • Config file posted on either pastie.org or pastebin.com
  • Actual problem typed and explained to best of detail

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of tobster78 tobster78 Apr 13, 2014 at 21:38 UTC - 0 likes

    @xPuyttre Pleeaaassee update it so that timers continue after restarts! D:

  • Avatar of Bumbleboy92 Bumbleboy92 Mar 15, 2014 at 09:54 UTC - 0 likes

    WongPrison

  • Avatar of Bumbleboy92 Bumbleboy92 Mar 15, 2014 at 09:54 UTC - 0 likes

    @TheShadbusher: Go

    Yea but I was really hoping for the Bungeefier feature

  • Avatar of DeveloperCricket DeveloperCricket Mar 14, 2014 at 22:59 UTC - 0 likes

    @Bumbleboy92: Go

    Hey I am continuing the plugin i'm working on updating it now

  • Avatar of TheShadbusher TheShadbusher Feb 24, 2014 at 00:49 UTC - 0 likes

    @Bumbleboy92: Go

    The plugin works fine.

    Don't let anyone look down on you because you are young, but set an example for the believers in speech, in life, in love, in faith, and in purity.

    1 Timothy 4:12

    http://minecraft-mp.com/regular-banner-36994-6.png

  • Avatar of Bumbleboy92 Bumbleboy92 Jan 28, 2014 at 21:52 UTC - 0 likes

    Anyone got like something close to this?

    Or is anyone going to continue it??

  • Avatar of johandre johandre Jan 23, 2014 at 19:06 UTC - 0 likes

    aww man.... abandonded? fucking crap. First he says he is going to update the plugin and is letting the server owners wait about 2 months untill he says its abandonded..

    www.powercraft.me

  • Avatar of _Wanderer _Wanderer Jan 19, 2014 at 16:06 UTC - 1 like

    Crap... abandoned...

    Anyone know a good replacement? I would be very appreciative. :-P

  • Avatar of Kongolan Kongolan Jan 15, 2014 at 03:51 UTC - 1 like

    Really interessting, first he says that version 3.0 comes out soon and he's developing it... And now the plugin is discontinued... I was waiting around 20 days now for it and checking it every day for nothing...

    EmeraldBattleCraft

  • Avatar of Bumbleboy92 Bumbleboy92 Jan 11, 2014 at 00:58 UTC - 0 likes

    SVL Version: 2.6 Votifier Version: 1.9 CraftBukkit Version: #2982 Errors in console (if one is given):

    {\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Arial;}}
    {\colortbl ;\red0\green0\blue255;\red255\green0\blue0;}
    \viewkind4\uc1\pard\cf1\fs18 6:47:00 PM [INFO] Bumbleboy92 voted at http://wingpvp.enjin.com/vote/ and recieved $1000, 7 diamonds, and 10 XP levels!\par
    6:47:00 PM [SEVERE] Could not pass event VotifierEvent to SimpleVoteListener v2.6\par
    6:47:00 PM org.bukkit.event.EventException\par
    \cf2 6:47:00 PM \tab at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:320) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2982jnks]\par
    6:47:00 PM \tab at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2982jnks]\par
    6:47:00 PM \tab at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:481) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2982jnks]\par
    6:47:00 PM \tab at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:466) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2982jnks]\par
    6:47:00 PM \tab at com.vexsoftware.votifier.net.VoteReceiver$1.run(VoteReceiver.java:181) [Votifier.jar:?]\par
    6:47:00 PM \tab at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftTask.run(CraftTask.java:53) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2982jnks]\par
    6:47:00 PM \tab at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2982jnks]\par
    6:47:00 PM \tab at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:587) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2982jnks]\par
    6:47:00 PM \tab at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:250) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2982jnks]\par
    6:47:00 PM \tab at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2982jnks]\par
    6:47:00 PM \tab at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2982jnks]\par
    \cf1 6:47:00 PM \tab at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2982jnks]\par
    \cf2 6:47:00 PM Caused by: java.lang.NumberFormatException: For input string: "24h2"\par
    6:47:00 PM \tab at java.lang.NumberFormatException.forInputString(Unknown Source) ~[?:1.7.0_45]\par
    6:47:00 PM \tab at java.lang.Integer.parseInt(Unknown Source) ~[?:1.7.0_45]\par
    6:47:00 PM \tab at java.lang.Integer.parseInt(Unknown Source) ~[?:1.7.0_45]\par
    6:47:00 PM \tab at me.puyttre.svl.TimedCommand.startTimer(TimedCommand.java:24) ~[?:?]\par
    6:47:00 PM \tab at me.puyttre.svl.SimpleVoteListener.initOnlineVote(SimpleVoteListener.java:113) ~[?:?]\par
    6:47:00 PM \tab at me.puyttre.svl.SimpleVoteListener.vote(SimpleVoteListener.java:65) ~[?:?]\par
    \cf1 6:47:00 PM \tab at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_45]\par
    6:47:00 PM \tab at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]\par
    6:47:00 PM \tab at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]\par
    \cf2 6:47:00 PM \tab at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_45]\par
    6:47:00 PM \tab at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:318) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2982jnks]\par
    \cf1 6:47:00 PM \tab ... 11 more\par
    6:47:04 PM [INFO] CONSOLE issued server command: /mail send Bumbleboy92 Thanks for voting! Enjoy your reward :)\par
    6:47:04 PM [INFO] Mail sent!}
    

    Config file posted on either pastie.org or pastebin.com: http://pastebin.com/rRaTNAWF Actual problem typed and explained to best of detail: I'm not sure why, but it says it's connected, the plugin is enabled, and one of the commands are being run. I know for a fact that all the commands I entered are able to be executed because they are Essentials commands. The only command that is working is the console sending mail to the player with my edited message.

Facts

Date created
Jan 21, 2013
Category
Last update
Apr 06, 2013
Development stage
Beta
Language
  • enUS
License
GNU General Public License version 3 (GPLv3)
Curse link
SVL
Downloads
33,205
Recent files

Authors