DamnRegister

DamnRegister

DamnRegister is a plugin to register website users from inside minecraft. It includes a RPC module for drupal that work as the second part, but depending on you website system you might be able to use this even without the drupal part.

A user can type /register some@email.com and this plugin will connect to drupal and create user with his minecraft username and email given. Drupal will then send an email to the user with a link they can use to confirm the email with and reset the password.

The configuration makes it possible to usr any url and any POST body template. Responses from the server can also be mapped to different in-game messages.

if you need GET or something else find me (Faua) on this minecraft server damnation.eu (or simply join the server for awesomeness/fun)

Installation

  1. Install the drupal module (DamnRegisterDrupal.zip in the files section) in your drupal installation
  2. Login as admin user in drupal and enable the module.
  3. After that you can click configure on the module and setup some random shared secret
  4. Install the minecraft module and /reload to start the plugin
  5. edit the plugins/DamnRegister/config.yml and change the url to include the previously made secret
  6. give users access to the damnregister.register to allow them to use the command

Configuration

The default config install should be very easy to adapt to drupal module where you just need to change the "<string>secret</string>" part to fit the secret you have configured in drupal.

But in case you need it for some other websystem this is how you could adapt it for an imaginary php script that takes in the username and email with a newline as a separator, and returns with and simple status text.

#url to call when a user run /register
url: http://localhost/myowncallback.php

#body is the url which is sent to the url
# %1$s will be replaced with the minecraft username
# %2$s will be replaced with with the first argument passed to the /register method
body: "%1$s\n%2$s"

answers:
  - response: "OK"
    answer: A mail has been sent to you with further information
  - response: "INVALID EMAIL"
    answer: Your email is not valid
#Any responses not defined here will result in outputting the response to the log and displaying an error message asking the user to contact an admin.

Developer Information

Source can be found on github


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files