Inactive [ADMIN/SEC/CHAT]Vote2Ban - Mute, Ban, Freeze, Kick Pests Democratically [1.2.5-R4.0]

Discussion in 'Inactive/Unsupported Plugins' started by DocRedstone, Jun 5, 2012.

  1. Offline

    DocRedstone

    Ban2Vote
    A democratic way of getting rid of griefers and other derps by letting the community help itself!

    Here is a linklist of the pages that will be important:


    Vote Example - Configuration - Permissions - BanVoteEventLog.txt Info



    Features:


    • let your players vote for banning other players
    • let your players vote for kicking other players
    • let your players vote for muting other players
    • let your players vote for freezing other players
    • log kept in root folder - "BanVoteLog.txt"

    Commands:


    • /banvote [playername] [reason] | initiate a ban vote
    • /kickvote [playername] [reason] | initiate a kick vote
    • /mutevote [playername] [reason] | initiate a mute vote
    • /freezevote [playername] [reason] | initiate a freeze vote
    • /vote [yes-no] | vote yes or no on the current situation

    Configurables:


    • time of one mute
    • time of one freeze
    • time of one ban
    • weight of a NO vote
    • weight of a YES vote
    • vote duration
    How To Vote:
    Here is how a standard vote is happening:
    Player Voter wants to ban Target, so he types:
    /banvote Target he's greifing! The server announces the starting of a ban vote:
    [BanVote] A vote has been opened to ban Target.
    [BanVote] Because: Reason
    [BanVote] Say /vote yes to vote for, /vote no to vote against.
    The amount of time will pass that is located in config.yml file.
    Then the server will tally up the yes votes and the no votes.
    Senario 1

    Let's assume in the config.yml file the no votes are worth 2 and the yes votes are worth 1.
    3 People Voted No: 3*2 = 6 No Votes
    7 People Voted Yes 7*1 = 7 Yes Votes
    This person is banned.
    Senario 2

    Let's assume in the config.yml file the no votes are worth 1 and the yes votes are worth 1.
    3 People Voted No: 3*1 = 3 No Votes
    3 People Voted Yes: 3*1 = 3 Yes Votes
    The targer is spaired because it was a draw

    Configuration:

    # Vote2Ban - By DocRedstone
    Settings:
    PermaBan: true
    'MuteLength:': 10
    'FreezeLength:': 10
    'BanLength:': 10
    'VoteDuration:': 2
    'WeightOfYesVote:': 1
    'WeightOfNoVote:': 1
    PermaBan - Decide if a ban vote is forever or if it is just for a defined period of time.
    MuteLength - The length that a player is muted for if a vote is successful.
    FreezeLength - The length that a player is frozen for if a vote is successful.
    BanLength - The length that a player is banned for if a vote is successful. Only applies if PermaBan is false.
    VoteDuration - Amount of time the elapses before the votes are tallied.
    WeightOfYesVote - How much a yes vote counts for.
    WeightOfNoVote - How much a no vote counts for.


    Permissions:
    banvote.vote: Allows you to vote for ban
    mutevote.vote: Allows you to vote for mute
    kickvote.vote: Allows you to vote for kick
    freezevote.vote: Allows you to vote for a freeze

    voter.canvote: Allows the user to vote yes/no
    BanVoteEventLog.txt Info
    BANTYPE: MUTEIGN: WingsOfLifeReason: cursingInvolved In Voting: WingsOfLifeDate: 2012/06/05 11:31:29
    BANTYPE: KICK IGN: WingsOfLife Reason: being terrible Involved In Voting: WingsOfLife Date: 2012/06/05 11:34:15
    • BANTYPE: Can be either mute, kick, ban, freeze
    • IGN: The in game name of the person who was muted, kicked, banned or frozen
    • REASON: The reason given by the voter for muting, kicking, banning or freezing the player
    • INVOLVED IN VOTING: The people who voted either yes or no to have action taken on IGN
    • DATE: The date and time that this action took place
     
    afistofirony likes this.
  2. Offline

    NoobDev

    Wow, thats huge! Good Job, nice Plugin, nice idea!
    But I have a suggestion: can you add a permission or anything like that, and if you have that permission you can't get banvoted ?
     
  3. Offline

    DocRedstone

    Sure :) I'll work on it for v2.0
     
  4. Offline

    noobkackboon

    very nice plugin!
    I also had that idea before :D

    But when griefers find out about this plugin, they could login with many (as they often do)
    and then voteban your regular players for nothing ;(

    A solution could be to only allow this to regular players ("first login is more than X days ago" or "logged in more than x times") also, you could combine that with mcbans and not give permissions to anyone with a low reputation.
     
  5. Offline

    DocRedstone

    We'll thats the purpose of the permissions. But good point. Maybe I'll add a day counter.
     
  6. Offline

    Ageo

    Hi, thx for this great plugin !

    I have a problem with permissions:
    Mineur:
    default: false
    permissions:
    - mutevote.vote
    - kickvote.vote
    - freezevote.vote

    I add this on my groups.yml but the player can't acces to vote yes or no. The player can /mutevote, /kickvote and /freezevote but no /vote yes /vote no.
    What is the permission for this ?

    Thx dude !
     
  7. Offline

    DocRedstone

    Thank you I forgot to put it in the update log. It is: voter.canvote
     
  8. Offline

    Ageo

    Thx dude for your quickly response.
    It's work fine on my server :)

    Just, after a vote ths cooldown it's 2min. I think one minute it's the best but in 2min the person can flood.

    Sry for my bad english :D
     
  9. Offline

    DocRedstone

    You can edit the cooldown time in the config file :D

    Thanks :D
     
  10. Offline

    Ageo

    How :) NICE thx it's done.
     
  11. Offline

    DocRedstone

    :D
     
  12. Offline

    Ageo

    Hi dude :)

    I have find a bug, it's possible to ban an OP (Administrator, Modérator). I think it's bad, all people can ban my admin or my modérator.
    Can you repair this bug plz ? :)

    Thx for this nice plugin it's work fine on my server.
     
  13. Offline

    lord_jacob

    Very nice! Will try this out soon

    One problem, once i installed it.
    My players banned me. Lucky for i was the owner so i could unban.
    Is there a permission node like cant.bebanned

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 26, 2016
  14. Offline

    Reptar_

    EDIT:
    I take that back, it doesn't work for me. Internal errors.
     
  15. Offline

    DocRedstone

    I'll work on permission nodes.



    Post them please.
     
  16. Offline

    Reptar_

    For some reason I reinstalled the plugin and now it works. But another problem I have is, I can't start any bans,mutes,etc after I have already started one, (After one ends.) And there are grammar errors in the messages.
     
  17. Offline

    DocRedstone

    That is because there is a cool down. It is editable in the config file.
     
  18. Offline

    Reptar_

    I configured it to 2 minutes and waited forever.
     
  19. Offline

    Deleted user

    I'm surprised this hasn't been accepted yet.

    1. Latest RB in title. No changes to your plugin is needed. [1.2.5-R4.0].
    2. Changelog at the bottom of the original post please.
    3. Perhaps a video showing off this plugin (this isn't needed)!

    Other than that, good luck with your plugin!
     
    DocRedstone likes this.
  20. Offline

    DocRedstone

    Thanks I appreciate it.
     
  21. Offline

    md_5

    Nice, approved.
     
    DocRedstone likes this.
  22. Offline

    lastrachris

    I keep getting this error:

    [WARNING] Unexpected exception while parsing console command
    org.bukkit.command.CommandException: Unhandled exception executing command 'banvote' in plugin BanVote v1.0
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:479)
    at org.bukkit.craftbukkit.CraftServer.dispatchServerCommand(CraftServer.java:475)
    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:612)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:581)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.command.ColouredConsoleSender cannot be cast to org.bukkit.entity.Player
    at me.docredstone.ban.Main.onCommand(Main.java:362)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    ... 7 more
    It should also be noted it runs off Linux. But when I type "/banvote [playername] [reason]" it spits out this error.
     
  23. Offline

    DocRedstone

    It appears as your trying to send the command from the console. The plugin does not yet support that.
     
  24. Offline

    lastrachris

    Gotcha. Thanks. Do you have a time line of when that might be implemented? If at all? And also I'd like it for my players to be the ones to start the vote. Is there anyway I can configure that? Also when I as an OP go to start a vote I get one of two errors: 1. An internal error has occurred. Or 2. A vote in already in progress, please be patient.
     
  25. Offline

    DocRedstone

    I'm not sure. This is one of my less popular plugins.

    For the internal error can you post what is in console? The A vote is already in progress is probably a response to the internal error.
     
  26. Offline

    lastrachris

    [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'banvote' in plugin BanVote v1.0
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:479)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:821)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:781)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764)
    at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:567)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.NullPointerException
    at me.docredstone.ban.Main.onCommand(Main.java:374)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    ... 12 more
    That is the fun little error.
     
  27. Offline

    DocRedstone

    Did you try sending this from the console? If not then you forgot to type /banvote <playerName>. This is one of my older plugins so I did not add error handling.
     
  28. Offline

    Acheadle

    hey guys i keep getting an internal error and so do my players. i have no idea what this error is.
    org.bukkit.command.CommandException: Unhandled exception executing command 'vote' in plugin BanVote v1.0
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:479)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:821)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:781)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764)
    at net.minecraft.serverhook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:141)
    at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
    at net.minecraft.serverhook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:83)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:567)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.NullPointerException
    at me.docredstone.ban.Main.onCommand(Main.java:390)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    ... 14 more
    20:17:21 [INFO] <**Avengers M Fa H [Member]watts3> still an internal error
    20:18:20 [INFO] watts3 lost connection: disconnect.quitting
    20:18:20 [INFO] Connection reset
    20:20:30 [INFO] watts3 [/107.3.206.186:52299] logged in with entity id 3697 at ([world] 996.3000000119209, 13.0, -520.7306988342643)
    20:20:36 [INFO] <**Avengers M Fa H [Member]watts3> sry back
    20:20:44 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'vote' in plugin BanVote v1.0
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:479)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:821)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:781)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764)
    at net.minecraft.serverhook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:141)
    at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
    at net.minecraft.serverhook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:83)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:567)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.NullPointerException
    at me.docredstone.ban.Main.onCommand(Main.java:390)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    ... 14 more
    20:22:59 [INFO] <**Avengers M Fa H [Member]watts3> brb
    20:23:00 [INFO] watts3 lost connection: disconnect.quitting
    20:23:00 [INFO] Connection reset
    20:28:02 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'banvote' in plugin BanVote v1.0
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:479)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:821)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:781)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764)
    at net.minecraft.serverhook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:141)
    at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:567)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
    at me.docredstone.ban.Main.onCommand(Main.java:366)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    ... 13 more
     
  29. Offline

    Xscoaler

    Do this VOTE works on Craftbukkit 1.3.1
     

Share This Page