Invitation Rewards

Discussion in 'Archived: Plugin Requests' started by VitaliCraft, Jan 12, 2013.

  1. Offline

    VitaliCraft

    Hi! I'm a pretty lowly Java developer myself, and was completely lost in my attempts to write this on my own, so I thought I'd put it out here to see if anybody could create it for me.

    Essentially, I'd like a plugin that rewarded players on my server who invited other people on. Basically encouraging word of mouth. The plugin would be pretty simple; players would type /invite <username> in game (preferably up to five invited names) and then if that username joined the server, they would get some amount of items or iConomy money awarded to them, preferably configurable. I think it'd not only benefit me, but be a very nice plugin for many server owners trying to expand their modest playerbases by word of mouth.

    Other 'nice' features, but not really needed:
    - It'd be nice if banning players cleared their list
    - I suppose the more configurable the better, so I don't have to run back here and whine for more
    - I'd like an admin command, like, say, /checkinvites <name> to see who somebody has invited

    Commands would be: /invite <name> , and perhaps that admin command.

    Thanks for considering the idea!
     
  2. Offline

    Year

    I had this idea last night too, so ironic!! Haha.

    200% Support!!
     
    VitaliCraft likes this.
  3. Offline

    VitaliCraft

    I do agree. I think it'd be quite nice. I'm new here, any idea how long it could be before some kindly dev decides to help?
     
  4. Offline

    brinaq

    [quote="VitaliCraft, post: 1501341, member: 90773336] ... any idea how long it could be before some kindly dev decides to help?[/quote]

    It really depends on how simple the request is and this seems like it would be easy for a dev (no I am not a dev but I long to be one) to make so I'd say give it a day and if no replies bump it. :)
     
  5. Offline

    VitaliCraft

    Bump. Sorry, we really need this :p
     
  6. Offline

    Dark_Riddles

    Have you look for this already I found this in like a min or so Here the plugin
    Invite'Em
    I hoping that what you wanted
     
  7. Offline

    colony88

    I will try.

    EDIT: Woops, just got ninja'ed
     
  8. Offline

    VitaliCraft

    I assure you that I did extensive research before posting the thread; I saw this. However, if you read my post (perhaps I was not clear enough; if so, I apologize), I do not want a whitelist system controlled by player invites. We're a non-whitelist server entirely. This is a new way to get people.

    "Invite `em allows you to limit user registrations by invitation system."

    I do not want to limit user registration, I want to maximize it.
    Thanks for the reply, though ^_^

    I'd love it if you would.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 8, 2016
  9. Offline

    Beef Stew

    The only problem is...

    GuyWhoWantsStuff: /invite playerwhoisonserver, /invite playerwhoisonserver2, /inviteplayerwhoisonserver3, etc.
    Players leave.
    Players join.
    GuyWhoWantsStuff gets a shit-ton of stuff for inviting them all.
    FIX: Make it so that the player must join for FIRST TIME after being invited, and are presented with a command "/invitedby". That way they can confirm that the person really invited them.
     
  10. Offline

    VitaliCraft

    Ahh, you're right. I didn't notice that. Yes. I like your fix, although the smoothest interface would be the best. If there was some way for us to create a command for users already on the server, I'd like it... Hmm.
    Using the beginning of your idea, d'you think it reasonable to have my /invite command, but it only works if the player's .dat file is not located in /world/players/? As in, "Oops! This player is already registered." if it searches the DB and gets a hit.
    Thanks for catching that.
     
  11. Offline

    colony88

    Will be done tomorrow, close to getting finished. A little patience ^^
     
  12. Offline

    VitaliCraft

    Thanks so much. I'll make you a shrine. Hehe.
     
  13. Offline

    Edge209

    You can achieve the same results in a slightly different manner with the "referred by" function of OnTime.

    http://dev.bukkit.org/server-mods/ontime/

    When a player joins, they execute a command that identifies who referred them to the server. The person they name will receive a reward you configure. It can be set up such that anyone that already has a been on the server for a specified amount of time can't execute the command, so you can limit it to new players only. You can also set it up so the reward is only issued after the new player actually spends a certain amount of time playing. There is much more to the function but you will have to visit here to find out:

    http://dev.bukkit.org/server-mods/ontime/pages/referred-by-rewards/
     
    VitaliCraft likes this.
  14. Offline

    VitaliCraft

    Ah, thanks so much for the response, I actually hadn't seen that one. I'm afraid that I'm a bit picky about who types the command (well aware though I am that I'm begging work for no pay here), which is why I don't use that one. If this was kind of a 'big deal' plugin that would be lotsa tough Java or some such, I would with gratitude and without pause take a slightly different plugin to the same effect. But I think that my request was pretty straightforward without many cumbersome features, and for that I'd love the custom (and very simple) feature of /invite before the new person joins. Maybe I'm being stubborn. I do appreciate the response to my request very much, though!
     
  15. Offline

    Year

  16. Offline

    VitaliCraft

    Well, I trust that Bukkit filters their plugins to make sure things don't intentionally cause any harm. Thanks for the reply. However, the /invite function would make me very happy : P
     
  17. Offline

    VitaliCraft

    Mehh, sorry for the bump, but...
     
  18. Offline

    Chloe-chan

  19. Offline

    tuidog

    SpreadTheWord should work I asked for the same thing and this was made
     
  20. Offline

    VitaliCraft

    That looks awesome. My little idea circulated around existing players adding players to their "invited queue" so to speak. I do know that you're making that for somebody else who had something different in mind, though. But since it seems to be indev, if and only if that would be quick and easy to add, I'd love it. Otherwise, thank you for the response and your time, and have a lovely evening.
     
  21. Offline

    Chloe-chan

    I can make a "duplicate" with some modifications for you if I have the time, but no promises though. >~<

    EDIT: Oh yea, a flaw with your idea is that the player can just join in to allow the player who invited him to play recieve the award and just leave.
     
  22. Offline

    VitaliCraft

    Ah, that would be prodigious indeed xP
    And yeah, I know. Perhaps some sort of reward timer would be nice, but honestly for my own needs, I run a small survival server with a very solid community (if I do say so myself.) I don't think they'd do that much. At least it gets the person on, and who'd go through all that trouble for three diamonds or whatever? :p

    Unrelated: Anime/manga fan?
     
  23. Offline

    Chloe-chan

    If you say so, I think I can port one for you without the timer first, as I don't think I am fully free to do much. >~< Also, I haven't fully understand how to make my plugin work with little dependence on other plugins like economy so I only can temporary make it fully depend on one, so what economy plugin do you use ? iConomy ?

    Unrelated : Anime fan. ^^ Felt the urge to read the manga or novel part of the title but I do not want spoilers. Hehe. :3

    Sigh. Realised had to recode from the ground up, both uses different mechanics. Then I have done the "theory" part, but lots of errors on the "practical" part. Had to sleep, and very grumpy that I can't get it to work. :mad: Will try again tomorrow after you responded on what economy you use. ^^

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 8, 2016
  24. Offline

    VitaliCraft

    Aha. Checked the FTP, we've got iConomy, although I checked due to the essentials economy making weird overrides. In this case, iConomy'll be fine.
    And I do a lot of robotics programming; the theory is usually the hardest bit, after that its tests, tests, tests...
    I really seriously appreciate the assistance; Java is so different from C++... And yep, I watch insane amounts of anime, which is why I asked. Nice to see other fans here.
     
  25. Offline

    Chloe-chan

    Isn't iConomy outdated ? Also, I didn't learn Java from school. :3 I didn't learn from any teachers. I just decompile Minecraft and learn from the basics and refer to YouTube videos. The progress so far for the plugin is that the /invite works. /checkinvite also do. The remaining problem is that whenever someone joins, it can "tell" that the person is invited, and remove itself from anyone's list, but just can't reward the person who do so.

    Unrelated : Watch Sword Art Online. :3 It's plain awesome.
     
  26. Offline

    VitaliCraft

    Hmm. iConomy seems to work OK for us. Maybe we should switch to a different system, but so far it's doing ok for me... Not sure.
    And I'm a bit unclear. The big issue I had was handling the event of a player joining for the first time. PlayerJoinEvent worked fine, but that obviously doesn't work, because then people can invite people who already play and rack up diamonds (or whatever. Sponges maybe xD). I assume you've figured this out and all. And my school is desperately bad with technology, so I'm also completely self taught. Which means gaps in knowledge in my case; I just started Java. I wish I could help with that.

    And YES! I absolutely love that. I read the entire manga series first, but I actually prefer the anime a little bit.
     
  27. Offline

    Chloe-chan

    Oh maybe that's what causing it to stop working. I don't know, I think I used Bukkit's API to check if the player have joined before when they issued a invite command. Then if so, it will add to a map. When a player joins, I will reference the map if it contains the player and if so, retrieve who did so and reward that person. I hope that's not the error.
     
  28. Offline

    Retherz_

    ill make a plugin like this :)
     
  29. Offline

    VitaliCraft

    I see... I think. Just to straighten things out, though... So, a player types /invite user123. You used the API to see if they are already in the world/players/ folder (or something...) and if they aren't there, they're added to a list under the issuer's name; then, when the mapped player joins, the one who gave the command gets stuff? That seems solid enough to me. I don't know... I wish Minecraft used C++ :/

    Thank you, but... I was under the impression that Chloe was working on it, and indeed I believe that it is underway. Er, not completely certain. Thank you for the offered help, I really appreciate it, but I don't think that I specifically would need it at the moment. Although hey, if you just like the idea and want to make another one, yeah, absolutely.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 8, 2016
  30. Offline

    Retherz_

    Features:
    Permissions, give items, economy(vault?) anything else?
    Commands: /invite <player>, /accept <player>
    Another cool idea: If a invited friend donates / gets a higher rank the inviter gets a chosen rank? Like A invites B b donates 50$ A gets 10$ rank :)
     

Share This Page