Mineuniverse
Log in Register
Plugins

VoteSQL

Logs votes to a MySQL table
by InfernoKun
Download Claim this project
7,813 downloads
0 likes
Updated Jun 30, 2026
0 hypes
Admin Tools Informational Website Administration

VoteSQL - Banner

VoteSQL [Requires Votifier!]

Version: 1.4

Craft Bukkit 1.5.1-R0.2

This plugin logs player votes to a MySQL table or a Flat-File! While your at it you might as well go ahead and add a custom message with colors for when they vote! Also, it logs the amount of times they vote in numerals. This can be used to set up a stats php page or something :).

Video

Soon!

Features

  • Logs votes to a SQL table
  • Config
  • SuperPerms support
  • Plugin Metrics
  • Now can log with Flat-File Support!
  • Make your own custom messages with colors and such!
  • Gives money on vote!

Demo

Config

# Thanks for choosing VoteSQL! Simply change the info below. The FlatFileListener on the first vote may not record it!
VoteSQL:
  onVote:
    Enabled: false
    # %P = Player Name %S = The Site they voted from!
    Message: '&2Thank you for voting %P from %S!'
  MySQL:
    Enabled: false
    Server: Server Address eg.Localhost
    Database: Place Database name here
    User: Place User of MySQL Database here
    Password: Place User password here
    Table_Prefix: votesql
  FlatFile:
    Enabled: false
  currency:
    Enabled: false
    Amount: 150
    # %P = Player Name %M = Money received.
    Message: '&2%P, You received %M dollars!'

If some config options are not coming up delete the config and restart the server!

Commands

  • /votesql - Displays help page
  • /votesql reload - Reloads config.
  • /votesql check <string> - Adds to the database with a vote of 1
  • /votesql top - Shows the top 5 voters.

Permissions

  • votesql.reload
  • votesql.check
  • votesql.top

Planned

  • User Suggestions.
  • Adding the Auto-Updater Option!
  • Adding in game commands for leader-boards (Top 5 players and such! Amount will be Configurable)! See your individual placing and also your amount of votes you have!
  • Adding Vault support so they can receive money!
  • Give items on vote

Change Log

To see the change-log go on the files tab and click on the version to read any info on it!

Source

https://github.com/javoris767/VoteSQL

Metrics

Metrics

Bugs

Find any? Please submit a ticket and post errors in a gist! Link to gist: https://gist.github.com/

PHP Code

<?PHP
 
$user_name = "USERHERE";
$password = "PASSWORDHERE";
$database = "DATABASEHERE";
$server = "SERVERIPHERE";
$db_handle = mysql_connect($server, $user_name, $password);
$db_found = mysql_select_db($database, $db_handle);
 
if ($db_found) {
 
$SQL = "SELECT * FROM votesql ORDER BY votes DESC";
$result = mysql_query($SQL);
$value = 1;
while ($db_field = mysql_fetch_assoc($result)) {
print "<tr>";
print "<td>" . $value . "</td>";
print "<td>" . $db_field['playername'] . "</td>";
print "<td>" . $db_field['votes'] . "</td>";
$value = $value + 1;
print "</tr>";
}
 
mysql_close($db_handle);
 
}
else {
print "Database NOT Found ";
mysql_close($db_handle);
}
 
?>

Donate

Donations are greatly appreciated :)

VoteSQL Donation Link

VoteSQL v1.4
MC CB 1.5.1-R0.2
Release 2013-04-23 Get
VoteSQL v1.3.1
MC CB 1.4.7-R1.0
Release 2013-02-10 Get
VoteSQL v1.3
MC CB 1.4.5-R0.2
Release 2012-12-09 Get
VoteSQL v1.2.1
MC CB 1.4.5-R0.2
Release 2012-11-24 Get
VoteSQL v1.2
MC CB 1.4.5-R0.2
Release 2012-11-22 Get
VoteSQL v1.1.5
MC CB 1.3.2-R3.0
Release 2012-10-28 Get
VoteSQL v1.1.6
MC CB 1.3.2-R3.0
Release 2012-10-28 Get
VoteSQL v0.1
MC CB 1.3.2-R2.0
Release 2012-10-18 Get

More from InfernoKun

MobSupaRemoval
8,990
AntiXPFarm
8,023
SupaChat
7,265

You Might Also Like

AdBolt Advertising Network
Make money from your Minecraft server by running ads!
9,992
Mineload
Mineload
9,978
BeastTP
BeastTP v1.0 - Teleportation Made Easy! -[Permissions][1317]
9,966
RegionManager
generate regions with just one command!
9,950
TimeKeeper
Keep the Server-Playtime per Day
9,948
SimpleAdmin
simple way to ban/kick unwanted players from your server
9,945