Inactive [GEN/ADMN][Vault][1.4.6-R0.4] Vote (Day, Night, Kick, Ban, Sun, Rain, Custom)

Discussion in 'Inactive/Unsupported Plugins' started by RabidCrab, Jun 6, 2011.

  1. Offline

    RabidCrab

    This plugin is still actively supported! Go to the bukkit dev page by clicking here to receive the latest updates!
     
    stefa168 and Hackuss like this.
  2. Offline

    suicidal_banana

    Hmm, ive allowed my 'defaults' to only start day and sun votes, but allowed them to vote on all actions.
    But the problem is (despite of who votes on it btw) that both kick and ban dont seem to work?

    If more info is needed please ask, i thought i finally found a complete voting plug :(
     
  3. Offline

    RabidCrab

    If it's not working, you should be receiving an error of some sort. Is the log file recording any errors thrown by my plugin?
     
  4. Offline

    suicidal_banana

    Strangely enough theres no errors.
    But trough typing a lengty (now gone) reply and looking at the config file i think i found the problem;
    Code:
    - vote setvalue kick [%0]
    I think it should just be
    Code:
    - kick [%0]
     
  5. Offline

    RabidCrab

    The vote setvalue kick [%0] is correct. Essentially I'm calling my plugin to execute a custom command. In this case, a kick. It also does the same for a ban.

    Once I get home I'll double check and make sure it's executing correctly, but it may be an issue with permissions. It should be complaining when the vote plugin loads if there's a problem, but make sure that you have the very first name in ops.txt also have full permissions (you know, the * in permissions).

    The vote plugin has to have a user with full administrator privileges in order to execute a kick/ban.
     
  6. Offline

    WoodenAxe

    would love to use this but can't get past the command conflict with mcbans. Any way to force this one to take precedence?
     
  7. Offline

    RabidCrab

    There's not much to do about it really. I could add a "backup" command that checks for something like rcvote, but beyond that either the mcbans dev or myself would have to change the command we use.
     
  8. Offline

    Bronski

    I was in a second world that I added with Multiverse. I did a day vote, it succeeded (I was the only one online) and then got:

    Error: Player not found

    at the end of the output. I did not do a ban vote. Also, the time didn't change in the world I was in.

    Is this not multi-world compatible?
     
  9. Offline

    RabidCrab

    The player not found is an odd one, and yes it should do fine multiworld. I'll do a couple of tests and see what's going on.
     
  10. Offline

    RADE

    I have a problem. When the vote was successful - in a chat message "You don't have permissions".
    Permissions:
    Code:
    - vote.unkickable
    - vote.unbannable
    - vote.setvalue
    - vote.voteyes.*
    - vote.voteno.*
    - vote.startvote.*
    Config:
    Code:
    vote:
        help:
            GeneralHelpNotFound: No help list found.
            VoteStartHelpNotFound: No votes you can start found.
            GeneralCommands:
            - /vote yes - Vote yes on the active vote.
            - /vote no - Vote no on the active vote.
            - '/vote [votename] - Start a new vote with the keyword. '
            - /vote list - Display list of votes you can start.
        application:
            files:
                config:
                    Version: '1.1'
            Version: '1.1'
        default:
            VoteEndSuccessText: The majority has voted yes.
            NoVoteInProgress: No vote is currently in progress!
            PlayerUnbannable: '[%0] cannot be banned!'
            VoteAlreadyInProgress: A vote is already active, please wait to start another vote.
            VoteStartText: A vote has begun! Type /vote Yes or /vote No to vote.
            VoteCanceled: The vote has been canceled.
            PlayerVoteCounted: Vote counted.
            PlayerVoteStartNoPermission: You do not have permission to start a vote.
            PlayerNotFound: '[%0] cannot be found!'
            PlayerSetValueNoPermission: You do not have permission to the setvalue command.
            PlayerUnkickable: '[%0] cannot be kicked!'
            PlayerVoteChanged: You changed your vote.
            VoteEndFailText: The majority has voted no.
            PlayerVoteNoPermission: You do not have permission to vote.
            PlayerAlreadyVoted: You have already voted!
        votes:
            ban:
                VoteFailCommandDelaySeconds: 0
                InsufficientArgumentsError: Incorrect arguments! You need to do '/Vote ban PlayerName' where PlayerName is the player's name
                VoteSuccessCommandDelaySeconds: 3
                Description: Ban a player
                VoteSuccessText: Vote succeeded! [%0] has been banned
                VoteSuccessCommands:
                - vote setvalue ban [%0]
                CooldownMinutesToSuccessRevote: 15
                LastSuccessfulVote: 0
                TimeoutSeconds: 60
                VoteOnCooldownText: A player has been banned too recently!
                LastFailedVote: 0
                ArgumentCount: 1
                VoteStartText: Vote to ban [%0] has started! type /vote yes or /vote no to vote
                PercentToSucceed: 70
                IgnoreUnvotedPlayers: true
                VoteFailCommands: []
                VoteFailText: Vote to ban [%0] failed!
                CooldownMinutesToFailRevote: 30
            kick:
                VoteFailCommandDelaySeconds: 0
                InsufficientArgumentsError: Incorrect arguments! You need to do '/Vote kick PlayerName' where PlayerName is the player's name
                VoteSuccessCommandDelaySeconds: 3
                Description: Kick player
                VoteSuccessText: Vote succeeded! See you later [%0]
                VoteSuccessCommands:
                - kick [%0]
                CooldownMinutesToSuccessRevote: 1
                LastSuccessfulVote: 0
                TimeoutSeconds: 60
                VoteOnCooldownText: A vote to kick has been done too recently
                LastFailedVote: 0
                ArgumentCount: 1
                VoteStartText: Vote to kick [%0] has started! type /vote yes or /vote no to vote
                PercentToSucceed: 50
                IgnoreUnvotedPlayers: true
                VoteFailCommands: []
                VoteFailText: Vote failed to kick [%0]!
                CooldownMinutesToFailRevote: 5
            restart:
                VoteFailCommandDelaySeconds: 0
                InsufficientArgumentsError: ''
                VoteSuccessCommandDelaySeconds: 60
                Description: Restart the server
                VoteSuccessText: Vote succeeded! Restarting server in 60 seconds
                VoteSuccessCommands:
                - kickall
                - save-all
                - stop
                CooldownMinutesToSuccessRevote: 120
                LastSuccessfulVote: 0
                TimeoutSeconds: 60
                VoteOnCooldownText: The server has been restarted recently. Please wait a bit before trying again.
                LastFailedVote: 0
                ArgumentCount: 0
                VoteStartText: Vote to restart the server has started! type /vote yes or /vote no to vote
                PercentToSucceed: 90
                IgnoreUnvotedPlayers: true
                VoteFailCommands: []
                VoteFailText: Vote failed! Try again in 30 minutes if it's still lagging
                CooldownMinutesToFailRevote: 30
    
     
  11. Offline

    Tim13211

    can i disable the permissions so every one can use this? My groupmanager is a bit screwed up...
     
  12. Offline

    LeetPowerCraft

    Is there any way to customize the colors of the displayed messages? If not could you add such a feature, please? Thanks.

    One last question, sorry. How do I cancel a vote in progress? Like what's the command? I tried "/vote cancel" and it said cancel not found.
     
  13. Offline

    Plancke

    do my npc's count as players?
     
  14. Offline

    RabidCrab

    Just players.
     
  15. Offline

    Plancke

    ok thanks
     
  16. Offline

    VADemon

    Please help! After voting (vote successed. See you later ***) who voted see the message "You don't have permission".
    Code:
    2011-08-31 19:40:32 [SEVERE] java.lang.NullPointerException
    2011-08-31 19:40:32 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.getPlayer(CraftServer.java:202)
    2011-08-31 19:40:32 [SEVERE]     at com.sk89q.bukkit.migration.NijiPermissionsResolver.hasPermission(NijiPermissionsResolver.java:56)
    2011-08-31 19:40:32 [SEVERE]     at com.sk89q.bukkit.migration.PermissionsResolverManager.hasPermission(PermissionsResolverManager.java:102)
    2011-08-31 19:40:32 [SEVERE]     at com.sk89q.commandbook.CommandBookPlugin.hasPermission(CommandBookPlugin.java:458)
    2011-08-31 19:40:32 [SEVERE]     at com.sk89q.commandbook.CommandBookPlugin$1.hasPermission(CommandBookPlugin.java:187)
    2011-08-31 19:40:32 [SEVERE]     at com.sk89q.commandbook.CommandBookPlugin$1.hasPermission(CommandBookPlugin.java:184)
    2011-08-31 19:40:32 [SEVERE]     at com.sk89q.minecraft.util.commands.CommandsManager.hasPermission(CommandsManager.java:372)
    2011-08-31 19:40:32 [SEVERE]     at com.sk89q.minecraft.util.commands.CommandsManager.executeMethod(CommandsManager.java:302)
    2011-08-31 19:40:32 [SEVERE]     at com.sk89q.minecraft.util.commands.CommandsManager.execute(CommandsManager.java:256)
    2011-08-31 19:40:32 [SEVERE]     at com.sk89q.commandbook.CommandBookPlugin.onCommand(CommandBookPlugin.java:245)
    2011-08-31 19:40:32 [SEVERE]     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    2011-08-31 19:40:32 [SEVERE]     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    2011-08-31 19:40:32 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:320)
    2011-08-31 19:40:32 [SEVERE]     at me.RabidCrab.Vote.CustomCommands.kickPlayer(CustomCommands.java:59)
    2011-08-31 19:40:32 [SEVERE]     at me.RabidCrab.Vote.CustomCommands.setValue(CustomCommands.java:26)
    2011-08-31 19:40:32 [SEVERE]     at me.RabidCrab.Vote.Events.VoteCommandExecutor.onCommand(VoteCommandExecutor.java:63)
    2011-08-31 19:40:32 [SEVERE]     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    2011-08-31 19:40:32 [SEVERE]     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    2011-08-31 19:40:32 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:320)
    2011-08-31 19:40:32 [SEVERE]     at me.RabidCrab.Vote.Voting.voteSuccess(Voting.java:443)
    2011-08-31 19:40:32 [SEVERE]     at me.RabidCrab.Vote.Voting.voteTimeOver(Voting.java:405)
    2011-08-31 19:40:32 [SEVERE]     at me.RabidCrab.Vote.Voting.playerVoteYes(Voting.java:256)
    2011-08-31 19:40:32 [SEVERE]     at me.RabidCrab.Vote.Voting.beginVote(Voting.java:145)
    2011-08-31 19:40:32 [SEVERE]     at me.RabidCrab.Vote.Events.VoteCommandExecutor.startVote(VoteCommandExecutor.java:123)
    2011-08-31 19:40:32 [SEVERE]     at me.RabidCrab.Vote.Events.VoteCommandExecutor.onCommand(VoteCommandExecutor.java:65)
    2011-08-31 19:40:32 [SEVERE]     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    2011-08-31 19:40:32 [SEVERE]     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    2011-08-31 19:40:32 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:320)
    2011-08-31 19:40:32 [SEVERE]     at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:713)
    2011-08-31 19:40:32 [SEVERE]     at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677)
    2011-08-31 19:40:32 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
    2011-08-31 19:40:32 [SEVERE]     at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    2011-08-31 19:40:32 [SEVERE]     at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    2011-08-31 19:40:32 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    2011-08-31 19:40:32 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    2011-08-31 19:40:32 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    2011-08-31 19:40:32 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    2011-08-31 19:40:32 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Oh, I see there's a problem with commandbook. But I have permission to kick players with commandbook. And I have ALL vote.* permissions.

    [Permissions] version [3.1.6] (Yeti)
    Vote 1.1 (as far I know)
    Commandbook 1.5.2

    PS: Tried instead standard "kick" this command: "- kick [%0]" - the same error
     
  17. Offline

    RabidCrab

    Try redownloading Vote and deleting the Vote folder in the plugin folder. Between 1.1 and 1.2 Minecraft changed the way kicking works, so I had to make a few changes to my code. The only things broken were kick and ban, which is fixed in 1.2.

    I'm also curious as to why CommandBook would be intercepting console commands, so I'll have to take a look into that.
     
  18. Offline

    VADemon

    Didn't help :(
     
  19. Offline

    Hackuss

  20. Offline

    RabidCrab

    Hackuss likes this.
  21. Offline

    11RJB

    Great plugin. Works really well, and I love the ability to customize votes.
     
  22. Offline

    joeblow0413

    can you make it so the config has a timer and every time its night a message will popup saying vote for time day and when its day time vote for night will pop up on the chat feed also you can make this compatible with alerter which i s a greif protection thingy and when it detects fire beings place a messsage will pop up saying Ex. minecraft player placed fire vote to vban.
     
  23. Offline

    Hackuss

    @RabidCrab When the vote is successful, an error pops up about the lack of permissions. How do I handle this?
     
  24. Offline

    RabidCrab

    I've updated this plugin for the latest Bukkit version.

    I'm not sure how to get it back on the active plugins list, but I'll message a mod to get it visible.

    EDIT: It helps if I just look at the inactive plugins help thread and follow the simple instructions there....
     
  25. Offline

    CyberPunk

    [SEVERE] Could not load 'plugins/Vote.jar' in folder 'plugins'
    org.bukkit.plugin.UnknownDependencyException: Vault
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:195)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:222)
    at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:198)
    at net.minecraft.server.ServerConfigurationManagerAbstract.<init>(ServerConfigurationManagerAbstract.java:50)
    at net.minecraft.server.ServerConfigurationManager.<init>(SourceFile:11)
    at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:105)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:380)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
     
  26. Offline

    RabidCrab

    I just fixed this issue in 1.3.1_03, go ahead and use it instead. It should be approved in the next hour.
     
  27. Offline

    CyberPunk

    it works....

    does it only op could use?
     
  28. Offline

    RabidCrab

    Uh, I'll take a guess that you're asking if only the op's can create votes/vote on votes. By default, players can start votes, and vote no and yes. By default, op's cannot be kicked or banned. The permissions details are in the plugin.yml, but I'll post the relevant part here:

     
  29. Offline

    CyberPunk

    I wanna let Users Strat Vote,
    but when users wanna start a vote...the system shows they don't have the permission.
    BTW I didn't see the description about permission in plugin.yml.
    0.O?
     
  30. Offline

    RabidCrab

    It's in the plugin.yml, you have to open the jar file via a decompressor like winRAR. If players cannot start votes, you need to setup your permissions to give them access to vote.startvote.*. Since they don't have permissions, you must have a permissions plugin, which may override the defaults that are provided by the plugin itself.
     
  31. Offline

    Sadlar

    really nice and simple, i like it :D, a death vote would be cool too [skeleton]
     

Share This Page