Plugin category: Misc Suggested name: Verify Accounts What I want: Hello, Currently I am setting up a bukkit server. The idea is to use a whitelist in order to prevent griefers from entering the server. Therefore a new user must link his minecraft account with his forum account. however, there is no way to know the account the user linked to his forum account is his account. There could be a troll linking a random account and thereby preventing the real account owner to link his account. Therefore I thought of a way to verify the user. Unfortunately I need a bukkit plugin in order to do so and I cannot program java My idea is to give the user a unique code when linking their account to the forum. With this unique code they can use the /verify <unique code> command ingame. This will trigger a PHP script on my website (http://example.com/verify.php?name=<account_name>&code=<code>) php script: PHP: if($_SERVER['REMOTE_ADDR'] == $server_ip){ $name = $_GET['name']; $code = $_GET['code']; // Get code from database $sql = "SELECT code FROM minecraft WHERE username='" . $name . "'"; $db->sql_query($sql); $row = $db->sql_fetchrow(); // compare codes if($row['code'] == $code) { $sql = "UPDATE minecraft SET verified='1' WHERE username='" . $name . "'"; $query = $db->sql_query($sql); if($query) { echo "true"; } else { echo "false"; } } else { echo "false"; }}else{ echo "You are not allowed to access this script, please leave now";} Then the plugin will catch the response (true of false) and inform the user. Ideas for commands: /verify <code> Ideas for permissions: account_verify.verify When I'd like it by: Well, I don't want to hurry anyone, but as soon as possible. Is this possible, and if yes, does anyone have time to make this for me? I would be very gratefull ~ Archcry
archcry This is a great idea. I've always thought of this working like, you enter a code generated on the Minecraft side in to the forums account. However, doing it the way you're doing makes things alot easier! This is an amazing idea, I'll take this on! I have great ideas for this plugin such as customisable commands, custom response messages, and so much more! I'm really looking forward to working on this. Feel free to PM me if you have any questions or have more features for me to add. PS: Because this can be used for way more than just verifying accounts, I'm thinking of calling it something like "executePHP" or something like that. (I hope that is alright with you.)
Well there already is a plugin called MCcurl I think, which does sort of the same thing like you described above. However I need a real simple to use plugin so people don't quit because it is to difficult to register So I suggest to keep the verify command as simple as possible. Other commands will be usefull to, but keep the verify part as easy as possible please And about the name, I don't really care, call it whatever you want, I am glad you want to help me. It's your work so name it whatever you want.
archcry Okay, the plugin is finished. I'm just creating the BukkitDev project page, and writing simple documentation. I'll post a link once I upload it. It also supports multiple different return values. EDIT: Here is the project page: http://dev.bukkit.org/bukkit-plugins/executephp/ and here is the file until it gets approved: http://dev.bukkit.org/bukkit-plugins/executephp/files/1-execute-php-v1-0/ Enjoy!
Dude, you are awesome! I said as soon as possible, but this is really fast. Thank you very very much!
nxtguy Sorry for such a long bump. So if I use the PHP script that archcry posted with the executePHP plugin the user would get a code when registering on the forums that they would enter in game. Is this right? Where would you be able to view this code when registering? Would your Minecraft username show under your name like on these forums?
Charly_ZA All executePHP does, is send a http request along with a code that a user supplies in the command they enter on the server. It is up to you to make it work with your forums system. Or what ever you're using. Most of the coding to make what you would like work would be on the web/forums side of it. The plugin is just a small part in the full setup. Hope this helped.