VoteCommand
VoteCommand
VoteCommand is a plugin that allows your users to get the vote link of your server ingame! This plugin is in the alpha version so don´t be hard with it. If you find any Bugs or Problems , than report it in the comments or contact me with a ticket!
You can set up all in the config.yml !
Example configuration
Here is an example for the config.yml how you can configure it: Hint: At 'votelink' you must type a URL with http: or https: at the beginning, else your users can´t click on the link!
# You can use colors in the Messages with § and the letter for a color! More information at the VoteCommand BukkitDev page! configuration: vote: votelink1: 'http://Yoursite.com/Vote' votelink2: Votelink2 votelink3: Votelink3 votelink4: Votelink4 message: welcome: §6Welcome to this awesome server! §2You can vote with §7/§6vote §2! message: 'You can Vote here:' prefix: '[Vote]' permissions: You dont have permissions to do this!
Commands
/vote - This sends the player a message and the vote link which can be configured in the config
/vote reload - This reloads the messages from config
Permissions
votecommand.use - Permission for /vote
votecommand.reload- Permissions for /vote reload
votecommand.use.sign- Permissions for using the [Vote] signs
Sign Vote
Write on a sign in the second line: [Vote] and if a user with the permissions* votecommand.use.sign *clicks the sign the plugin will post the vote message + link(s) in the chat!
@InvisiCraftOfficial
yes i know... I´ve forgotten it but in the 2.8 it can be used! :D
/vote reload does not work in console. Could you add a confirmination message upon reload? That way I know it worked - thanks! Also noted that color codes are not supported in the config yet?
Great plugin!
@toxictroop Ok. I will add 4 vote commands in the new version! Thanks for your comment!
Im using this plugin, maybe you could add more voting sites with, /vote1 /vote2 /vote3 ect.
@InvisiCraftOfficial
In the next version! sorry but its my first plugin ! I will add this all! Thank you for comments :D
oh right. Checked ingame - works perfectly! Thanks for a great plugin :3 Simple and awesome. Any ingame commands to reload the config?
@InvisiCraftOfficial
Sorry you must type it ingame! In the console the command not work! I´ll fix it in the new version! And thank you for reporting this bug! ;D
18.12 02:12:45 [Server] INFO ... 8 more 18.12 02:12:45 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) 18.12 02:12:45 [Server] INFO at de.Fisell.VoteCommand.VoteCommand.onCommand(VoteCommand.java:27) 18.12 02:12:45 [Server] INFO Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.command.ColouredConsoleSender cannot be cast to org.bukkit.entity.Player 18.12 02:12:45 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:856) 18.12 02:12:45 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:426) 18.12 02:12:45 [Server] INFO at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:493) 18.12 02:12:45 [Server] INFO at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:223) 18.12 02:12:45 [Server] INFO at net.minecraft.server.DedicatedServer.al(DedicatedServer.java:258) 18.12 02:12:45 [Server] INFO at org.bukkit.craftbukkit.CraftServer.dispatchServerCommand(CraftServer.java:494) 18.12 02:12:45 [Server] INFO at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:502) 18.12 02:12:45 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:186) 18.12 02:12:45 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) 18.12 02:12:45 [Server] INFO org.bukkit.command.CommandException: Unhandled exception executing command 'vote' in plugin VoteCommand v2.6
/vote doe not work for me.. any ideas?
@Sanzennin
Thank you! I´ll try this.
Idea: Get rid of "if (p.hasPermission("votecommand.use")) {...}" (you already link the command in the plugin.yml with that permission, so you didn't need this in the first place.), and *add*
In the plugin.yml.
This is because the whole idea of the plugin is to let members use that command. Therefore, it should be defaulted to true. (It can still be disabled by server admins if they, for some reason, don't want people to vote by negating the permission. So don't worry about that.)
Hope this helps. ^_^
@InvisiCraftOfficial
look at Downloads ^^
Can't wait until you release this. Download link?