iWantToApply

Discussion in 'Archived: Plugin Requests' started by Mister_Fix, Dec 27, 2012.

  1. Offline

    Mister_Fix

    1. i got an idea for a great plugin:
      suggested name: iWantToApply
      commands:
      /apply
      this message will show up after you type /apply: "hello there %playername%, i see you want to apply for staff.. this will help you:
      -/age -to set your age
      (after you type /age this message will appear: your age is now %age%!)
      -/gender male or /gender female - this will set your gender to male/female
      (after you type /gender this message will apeear: your gender is %gender%!)
      -/IRL %name% - this will be used so that admins will know your real name.
      (after you type /IRL this message will appear: your name is %name%!)
      -/whyme - here you will type why YOU should be accepted!
      (after you type /whyme whis message will appear: description set! if you want to add to the description type /moredesc and continue typing!)
      -/done - to finish applying!
      (customizble message will be shown after you type /done)"
      everything thats in the brackests is too tell you what the command does it should not appear in the plugn...
      permissions:
      apply.apply - to let people to apply (use all commands above)
      apply.check - to see new applies
      apply.accept - used to accept the apply (command: /app accept %playername%
      apply.reject - used to reject applies (command: /app reject %playername%)
      also i'd like the plugin to auto promote the applier after his app was accepted.
    2. i want these commands to be only availeble after you type /apply:
      /age
      /gender male and /gender female
      /irl
      /whyme
      /moredesc
      /done
      ---------------------------------------------------------------------
      also i want all applies to be saved in a log (even efter they eccepted)
      with the name of the person who applied and the name of the person who accepted
      ---------------------------------------------------------------------
      i think thats all for now...
      *any details missing?*

    anyone

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 30, 2016
    Max_The_Link_Fan likes this.
  2. Offline

    kg9dh

    Im working on it, won't take that long. ;)

    Btw which permission system are you using? Would be helpful if you want it so it changes group.
     
    Mister_Fix likes this.
  3. Offline

    rtainc

    I can definitely make this, and it fits GREAT with my plugin series, iSeries! Maybe can it be called iApply?
     
  4. Offline

    Mister_Fix

    eh ok...
     
  5. Offline

    kg9dh

    Plugin is nearly done.

    What I need:
    - your permission system so it can automatically promote
    - a color scheme, e.g. "Your name is: <name>"

    What it can do/what it does:
    • save&load apps properly from the config onenable/ondisable (i know that the config gets long, but it looks properly in there), only loads needed apps(completed stay in config, but wont get loaded -> no memory issue)
    • Commands:
      • (apply.apply perm)
        /apply: needs to be used before using the commands: age, gender, irl, whyme, moredesc, done
        it shows the player step by step what he needs to do
      • /age: put in age
      • /gender, put in gender (in configs it will show 0&1 (male&female) but ingame it tells you male/female)
        -> bit quicker than a string
      • /whyme: reason why to be added
      • /moredesc: add more description to whyme
      • /done: complete app process, send msg to people who can /check
      • /checkstatus: check app status->accepted/denied or not handled yet
      • --------------------------------------------------------
        (apply.check perm)
        /checkapps: list of players who handed in an app
      • /check <app>: check a certain app (sends age, gender, reason(whyme), irl-name and playername)
      • (apply.accept perm)
        /accept <app>: accepts app, stores the handler
      • (apply.reject perm)
        /reject <app>: rejects app, stores handler
        --> if player now uses /checkstatus it either says accepted or declined
     
    Mister_Fix likes this.
  6. Offline

    Mister_Fix

    i use group manager (yes i have vault)
    i want the colors to be customizeble
     
  7. Offline

    dillyg10

    Btw, if you want (when kg9dh is done) I can make a PhP script, so that it auto emails an email in the config the player's app.
     
    Max_The_Link_Fan and Mister_Fix like this.
  8. Offline

    Mister_Fix

    thank you but this plugin gone too far, too many people are workin on it and i only need the plugin
    ill keep in conact with you though if i need anything done with PhP ok?
     
  9. Offline

    Mister_Fix

    so anyone else?
     
  10. Offline

    kg9dh

    I am still looking into it, but some things are broken atm.
     
  11. Offline

    Mister_Fix

    ok thank you for testing it too :p
     
  12. Offline

    Mister_Fix

    so how's it going with the plugin?
     
  13. Offline

    HyrulesLegend

    DO IT FOR THE REST <3 lol
     
  14. Offline

    bmcc1234

    Last edited by a moderator: May 30, 2016
  15. Offline

    caseif

    May I suggest the implementation of a user-friendly wizard, maybe by listening to the PlayerChatEvent, to whoever is developing this?
     
  16. Offline

    Mister_Fix

    and can you explain to a java retard like me what it does?
     
  17. Offline

    caseif

    Basically, when the player typed a command, they would be entered into a wizard which would ask them questions which they would respond to by sending a normal chat message (very similar to how Showcase or ShowcaseStandalone has players register showcases). The plugin would listen to their messages and cancel them when they are in the wizard. After the player left the wizard, it would enter all of the information they provided into a database table, which could be accessed by an admin at any given time.

    For the technical readers:
    You would set a global HashMap of type int which would map a player's username to an integer representing the stage of the wizard which they are in, and when they type a command to initiate the wizard, add them to the HashMap and map them to 1. Then, listen to the PlayerChatEvent and check if the player who spoke is in the HashMap. If they are, cancel the event and check the stage, then do the appropriate thing. For example:
    Code:java
    1.  
    2. HashMap<String, Integer> stage = new HashMap<String, Integer>();
    3. // define the command and add the player with stage.put(sender.getName(), 1);
    4. public void onPlayerChat(PlayerChatEvent e){
    5. String p = e.getPlayer().getName();
    6. if (stage.contains(p){
    7. e.setCancelled(true);
    8. String firstName = null;
    9. if (stage.get(p) == 1){
    10. e.getPlayer().sendMessage(ChatColor.DARK_PURPLE + "Welcome to the dummy wizard! To start, what is your first name?");
    11. firstName = e.getMessage();
    12. stage.remove(p);
    13. stage.put(p, 2);
    14. }
    15. else if (stage.get(p) == 2){
    16. // ask something else
    17. }
    18. }
    19. }

    And continue that until you're done the wizard. Optionally, you could listen for when a player says "cancel", and then remove them from the HashMap entirely, telling them that the wizard has been cancelled.
     
  18. Offline

    Mister_Fix

    that would be cool
     
  19. Offline

    gomeow

    AngryNerd
    To add to a hashmap, you do .put, not .add

    Just sayin....
     
  20. Offline

    caseif

    My bad, I was thinking of lists. :p
     
  21. Offline

    colony88

    AngryNerd And you forgot to put ".get(p)" after "stage" in the "else if"
     
  22. Offline

    caseif

    Whoops. Fixed it.
     
  23. Offline

    Mister_Fix

  24. Offline

    Mister_Fix

    so who goes the plugin..? is it hard to make? should this take long?
     
  25. Offline

    CeramicTitan Retired Staff

  26. Offline

    Chloe-chan

    I started coding on this. Seems to be pretty bumpy for me. Shall let you know the results tomorrow.

    EDIT: Aw. :( CeramicTitan already had progress on the plugin.
     
  27. Offline

    Mister_Fix

    so is it ready yet?
     
  28. Offline

    Chloe-chan

    CeramicTitan already have the project done.
     
  29. Offline

    CeramicTitan Retired Staff

    why don't we combined code. I will get you added to the project.
     
  30. Offline

    Chloe-chan

    Uh I'll try, but no guarantee.
     

Share This Page