Inactive [ADMN/GEN] AutoGroup v1.1.1 - Manage players based on time and PayPal donations. [1.4.5-R1.0]

Discussion in 'Inactive/Unsupported Plugins' started by md_5, Nov 13, 2011.

  1. Offline

    md_5

    My BukkitDev Profile
    My Plugins (8)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Download!
    http://dl.dropbox.com/u/36903976/Jenkins/AutoGroup-Time/AutoGroup-Time.jar
    BukkitDev
    http://dev.bukkit.org/server-mods/autogroup/
    Source
    https://github.com/md-5/AutoGroup

    Preface
    AutoGroup was a mod I started a long time ago in response to the needs of a server I play on and of those requested by the general public. It has long spent it's time at the bottom of my todo list, instead my time devoted largely to custom plugin requests. Anyway, it is time for me to reveal it to everyone.

    Information
    AutoGroup is a unique plugin that aims to make the management of groups and promotions much easier for server owners. It keeps track of the time the player has spent online, date they joined and last join time in a sqlite database. This database is then used to give admins the ability to promote users once certain playtime goals are set. There is currently the ability for one longevity rank, ie. Spend one month on the server and three 'addiction ranks', eg accumulate a total of 100 hours playtime.
    The other core feature of AutoGroup is it's PayPal donation management system, completely controlled by you! No information ever leaves your website at all. It's setup can be complicated, but I assure the rewards are great. This system makes use of PayPal's Instant Payment Notification API to give near instant confirmation of the payment, which is then inserted into a MySQL database ready for the user to claim. Safe, secure and fast semi-automatic donations.

    Installation - Donations
    1. Run once to generate default config.
    2. Using phpMyAdmin or a similar tool create a database, if using the donation feature, that is accessible from both your web server and Minecraft server. You may need to make sure MySQL binds to the correct ip to allow outside access. Then place donate.php in a directory on your web server and edit the variables as outlined below:
      $host = "localhost";
      $username = "AutoGroup";
      $password = "AutoGroup";
      $database = "AutoGroup";
      $myemail = "YOUR EMAIL HERE";
    3. Read this: https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_admin_IPNSetup
    4. As I cannot have a PayPal account I can't tell you the correct steps, but read the instructions and you will figure it out. The URL is where you put donate.php In short if using a PayPal button you can add notify_url="http://yoursite.com/donate.php" else follow the instructions.
    5. If you wish to test using PayPal's sandbox API, use donate.php and follow the instructions here https://www.paypal.com/cgi-bin/webscr?cmd=p/sell/ipn-test-outside
    6. Put your database details in AutoGroup/config.yml
    7. Thats it!
    Installation - Time features
    The config is self explanatory, but here it is for reference:
    Code (Text):
    1. debug: true
    2.  
    3. # MYQL Database Information
    4. mysqlURL: 127.0.0.1
    5. dbName: AutoGroup
    6. username: AutoGroup
    7. password: AutoGroup
    8.  
    9. # Internal Table Structure - Do not change!
    10. table: donators
    11. table2: players
    12.  
    13. # Set to true if players belong to more than 1 group
    14. addGroup: false
    15.  
    16. # Promotion command.
    17. # %1$s == glayername
    18. # %2$s == group
    19. command: permissions player setgroup %1$s %2$s
    20.  
    21. # The interval between checking players times
    22. interval: 60
    23.  
    24. # Loyalty Information
    25. loyaltyGroup: Whitelist
    26. loyaltyTime: 2678400
    27.  
    28. # Donation Information
    29. don1Group: Don1
    30. don2Group: Don2
    31. don3Group: Don3
    32. don1Amount: 15
    33. don2Amount: 25
    34. don3Amount: 26
    35.  
    36. addict1Group: Addict1
    37. addict2Group: Addict2
    38. addict3Group: Addict3
    39. addict1Amount: 3600
    40. addict2Amount: 36000
    41. addict3Amount: 360000
    All times are measured in seconds. To disable a time feature set the time to 0. Addict ranks are given based on cumulative playtime and the loyalty rank is based on how long since they joined the server. The MySQL information is for donations only, and the rest is self explanatory. The default command will work for PermissionsBukkit users.

    Commands
    /donate [Transaction ID]
    Command to donate via PayPal, simply follow it with the transaction id.
    /playtime <Player name>
    Show statistics about your playtime in seconds, and if you have the permission and another argument is specified, that players information.

    Permissions:
    autogroup.donate:
    description: Allows use of the donate command
    default: true
    autogroup.playtime:
    description: Allows use of the playtime command
    default: true
    autogroup.playtime.others:
    description: Allows use of the playtime command on others
    default: op
    autogroup.norank:
    description: Prevents player from being ranked
    default: op

    Show your thanks
    Well as I may have outlined before, no PayPal account for myself, therefore no donations, however your thanks means a lot to me.
    If you are an experienced server owner a tutorial video would be tremendous, just pm me!

    Changelog
    Version 1.1.1 - Fix status bug

    Version 1.1 - Fix config, add autogroup.norank
    Version 1.0 - Initial release

    People who may want this (Those I've seen in the plugin request section):
    @bobbysmithyy @lmc @Zaros @Lucce96 @jwnordquist @Rowtag @LittleNiamh @sephirothtm @Cheezetarts @Father Of Time
     
    tyzoid, codename_B, Crig000 and 3 others like this.
  2. Offline

    bobbysmithyy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    God bless you.
     
    tyzoid likes this.
  3. Offline

    md_5

    My BukkitDev Profile
    My Plugins (8)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Why thanks. I just remembered you and added the link to the source. Whoops forgot to tag @Cheezetarts
     
  4. Offline

    bobbysmithyy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Kind of confused as to how to install
     
  5. Offline

    bobbysmithyy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Wait I just got an error, is this only compatible with PermissionsBukkit?
     
  6. Offline

    md_5

    My BukkitDev Profile
    My Plugins (8)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Show your thanks
    Well as I may have outlined before, no PayPal account for myself, therefore no donations, however your thanks means a lot to me.
    If you are an experienced server owner a tutorial video would be tremendous, just pm me!

    @bobbysmithyy, maybe remove that huge quote please.
    For PayPal Donations:
    1) Create databse
    2) Upload script with database info
    3) Register script url with Paypal
    4) Put database info in config.yml
    5) /reload
    6) /donate YOUR TRANSACTION ID HERE
     
  7. Offline

    md_5

    My BukkitDev Profile
    My Plugins (8)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    0.o Forgot to remove that. One sec.
    EDIT: Fixed
     
  8. Offline

    lmc

    My BukkitDev Profile
    My Plugins (1)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Either remove the ridiculous comparisons to buycraft or I'll get a mod to do it. You did that on purpose.

    I don't care about this, it just proves xckd's comic.
     
  9. Offline

    md_5

    My BukkitDev Profile
    My Plugins (8)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    As you wish, done.
     
  10. Offline

    lmc

    My BukkitDev Profile
    My Plugins (1)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Thanks

    Looking over this it's nothing like my plugin so I'm sorry for previous things. I would however like you to pm me as I have a few concerns on your mysql queries and I'm offering you my help
     
  11. Offline

    md_5

    My BukkitDev Profile
    My Plugins (8)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Sure, go ahead and delete previous posts if you want.
    Regarding mysql I just whacked it in there so any concerns would be appreceated.
    Edit: And I guess the apologies are mutual.
     
    DrAgonmoray likes this.
  12. Offline

    lmc

    My BukkitDev Profile
    My Plugins (1)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I will contact you later as I have some things to do.
     
  13. Offline

    md_5

    My BukkitDev Profile
    My Plugins (8)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    So do I, mine include sleeping.
     
    tyzoid likes this.
  14. Offline

    Lucce96

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Super cool plugin
     
  15. Offline

    Zaros

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    This handles PayPal donations for ranks? And you tagged me for it?

    GET. OUT. OF MY HEAAAD. :eek:

    In other news: Sweet, a decentralized donation plugin!

    Edit: Given time, I may make the video for you. I don't even have time to try this out atm.

    Another edit: Any possible way that you could have the plugin check the age of the query against a specifiable time in the config? From what I see, this is a perma-promotion on donation. I need a plugin that can derank players after their promotion period is up. If you add that, you might also want to consider a way for it to check how much they donated, and compare it to see how much time they get. Another suggestion is multiple donation items. For example: /donate list returns what donation amounts can get you, and then /donation [item] [TID] checks your donation amount against what is required for that item. If you have enough, you get it. If not, your denied. In that case though, you would have to have the ability to enter multiple codes because you may not donate enough the first time.

    Sorry if what I put above is a bit confusing. Way to busy to code this myself, but I had a crap load of ideas for mine for when I got to it.
     
  16. Offline

    Windwaker

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    You have forgotten to add the latest RB this plugin works on ;)
     
  17. Offline

    md_5

    My BukkitDev Profile
    My Plugins (8)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I would be so grateful, it's a permanent donations atm.
    Dammit!
    Fixed.
     
  18. Offline

    Malchus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I am really looking forward to trying this out, looks incredible.

    Cheers mate.
     
  19. Offline

    TheLonelyIsland

    My BukkitDev Profile
    My Plugins (1)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    This is really neat and I love the idea. But I use buycraft now. If only this was out 3 months ago :D
     
  20. Offline

    md_5

    My BukkitDev Profile
    My Plugins (8)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    1.1 Is out. autogroup.ignore permission and config comments fixed.
     
  21. Offline

    Colm

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    could you add what worlds it ignores it also does not work... i use permissions 3.x yeti and it tries to use the global config then it can't so its goes for the default world config but i don't have "world" i have 3 worlds but none of them are called world. so could you add a config which worlds it promotes to?
     
  22. Offline

    Colm

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    i had a typo there on the "could you add what worlds it ignores" but i meant to say "could you add worlds that it promotes to?" thanks.
     
  23. Offline

    md_5

    My BukkitDev Profile
    My Plugins (8)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I can't remember the yeti command but you gotta edit:
    permissions player setgroup %1$s %2$s

    to the command where %1$s is the player and %2$s is the group.
     
  24. Offline

    Colm

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    What i mean it says Everyone congratulate Colm on becoming Member. I look at the console no errors but it says that it can't find the group on the global setting so then it says going to default world and i do not have the map name as world so thats what i mean i can give you my config but i don't think its a bug i just think it only does global or world it does not attempt on trying to find the other worlds. So i may of got the wrong thing from what you said so i'm sorry if i did. Thanks.
     
  25. Offline

    md_5

    My BukkitDev Profile
    My Plugins (8)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Not my problem, it's permissions. Either upgrade or take the command you normally use to promote people and put it in the config like so:
    Code (Text):
    1. # Promotion command.
    2. # %1$s == glayername
    3. # %2$s == group
    4. command: permissions player setgroup %1$s %2$s
    # Promotion command. # %1$s == glayername # %2$s == group command: permissions player setgroup %1$s %2$s

    Unless you are using permissionsbukkit you have to do that.
     
  26. Offline

    Colm

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    well can i use the permissions plus commands because thats the best way i will try it now
     
  27. Offline

    Colm

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Ok i tested it and some groups with the permission autogroup.norank does not work and they still get promoted/demoted.
     
  28. Offline

    md_5

    My BukkitDev Profile
    My Plugins (8)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Permissions 3 is NOT SUPPORTED
    Use a real permissions plugin such as:
    PermissionsBukkit
    bPermissions
    PermissionsEX
     
  29. Offline

    Colm

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    i can't though because all my permissions or 3.x and still a lot of plugins support it because its still a really popular plugin so i can't say to do so but please could you add support to do so sorry to bug you if you can't :(.
     
  30. Offline

    md_5

    My BukkitDev Profile
    My Plugins (8)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Life is about standards. For nearly six months Bukkit has been moving to those standards. No new plugins use Permissionss 2/3 anymore.
     

Share This Page