AwesomeAFK

Discussion in 'Archived: Plugin Requests' started by np98765, Sep 25, 2012.

  1. Offline

    np98765

    Hey everyone,

    I am going to stray from the format here because there's really no use in formatting it for one command and one permission node.

    I'm looking for someone to (help) create an AFK plugin. I've dubbed it AwesomeAFK. It can be released on BukkitDev, open-source, whatever you wish to do with it.

    Code:
    auto-afk: 500
        # Number of seconds of idling until auto-AFK
    afk-kick: 500
        # Number of seconds until AFK users are kicked
    afk-god: true
        # Whether the user is granted god when AFK.
        # If true, the users is frozen until typing /afk again.
    afk-god-requires-automatic: true
        # Whether the user is granted god ONLY on auto-AFK. Requires 'afk-god' to be TRUE.  This is to prevent hurried AFKing when being attacked.
    afk-skip-night: true
        # Skipping night does not require AFK players to be in bed
    afk-skip-night-requires-automatic: true
        # Night may be skipped, but only if the AFK players are auto-afk. Requires afk-skip-night to be TRUE.
    afk-message: '&e%player &bis now AFK.'
        # Please translate ChatColors!
    auto-afk-message: '&e%player &bis now AFK. &7(AutoAFK)'
    
    Other Features:
    - When AFK, set the PlayerListName to GRAY please (preferably get the DisplayName)
    - Players will only un-AFK if they move, send a chat, or type /afk -- Not if an animal, water, or other user pushes them (Making AFK users unpushable)
    - AFK players cannot pick up items/XP
    - Players with the permission awesomeafk.noauto will not go AFK automatically.

    Thanks! :)
     
  2. Offline

    Deathmarine Retired Staff

    Dah hell... Y you no code self? If I get a break from my current challenge (which I seem to be winning) I'll write it for the lulz.
     
  3. Offline

    np98765

    I'm a bit busy; already flooded with schoolwork from the weekend I haven't yet completed. :3

    Coding challenge? :confused:

    Thanks. :)
     
  4. Offline

    Deathmarine Retired Staff

    I forked an empty repository in the beginning stages of dev and am trying to build the system before they do.
    challenge.jpg
     
    Royal_Soda likes this.
  5. Offline

    Sushi

    Sure, I'll make it.
     
  6. Offline

    np98765

    Thanks Sushi. :)

    Oh also, for anyone wondering why I want this:
    Users have been AFKing to skip the night way too much, it's time I put a stop to that. :p
    I'm also trying to replace Essentials with a combination of other plugins, so I do need a nice AFK solution.
     
  7. Offline

    Tirelessly

    I don't think there's a way to get the reason for a playermoveevent.. And also, set the playerlistname to strikethrough not gray.
     
  8. Offline

    Muddr

    If sushi doesn't wanna finish is for some reason I'd be willing to do it..
     
  9. Offline

    Kodfod

    seems like a cool idea. can't wait to see the finished product.
     
  10. Offline

    np98765

    Well, there must be some way (I did think of this when I originally had the idea), as other plugins have done this (If I can remember one, I'll link ya). I actually think it was another AFK plugin...

    Thanks, guys. :)
     
  11. Offline

    Sushi

    I can log when a player goes afk too hohohoho
     
    afistofirony, np98765 and Omnitv like this.
  12. Offline

    Omnitv

    Sushi is the man!..... I think she is... or he.. :p

    Nice np98765 you gunna dev it? with Sushi?
     
  13. Offline

    Sushi

    np98765 likes this.
  14. Offline

    Muddr

    This isn't done yet?? :p
     
  15. Offline

    np98765

    Hey Sushi,

    It seems as if I omitted something from my original post that should have been there. Besides the Auto-AFK bypass (awesomeafk.noauto), I'd like a force-auto-AFK (so it looks as if the user went AFK automatically). If the command contains -auto somewhere, and the user has the node awesomeafk.forceauto, then it will display the message as if the user automatically went AFK.

    Thanks! :)
     
  16. Offline

    Sushi

    why the dash
     
  17. Offline

    np98765

    args[0] is "auto"... Sorry, I was tired! I was thinking to make it a flag? but I'm not quite sure..
     
  18. Offline

    Sushi

    wow sorry this is taking forever
     
  19. Offline

    np98765

    Haha, it's not extremely urgent so I'm ok. I know just how busy things can get. :3
     
  20. Offline

    np98765

    Sushi How is development coming along? ;)
     
  21. Offline

    Sushi

    f**k me

    If anyone wants to help out to speed development out, send a pull request to the github.

    :p
     
  22. Offline

    np98765

    Sushi
    I'll try to dust off the repo and add some things tonight. :p

    If anyone else would like to contribute, that'd be much appreciated!
     
  23. Offline

    Sushi

    I'll add you so you can push without me having to accept a pull, what's your github username.
     
  24. Offline

    np98765

    np98765 :p

    Actually, I won't be able to do anything tonight; I have a wagonload of homework to do. >_<
    Tomorrow...
     
  25. Offline

    Sushi

    Ok. I'm sorry, I'm working on servr, my new control panel for Minecraft. It has cli and a web panel, but cli is the first class citizen here. It's written in Go and compiles to machine code, so it's pretty fast and lightweight.

    [​IMG]

    Just a small plug here, haha. Anyway, I added you to the git repo.
     
  26. Offline

    Hoolean Retired Staff

    Down with homework... Gets in the way of programming! :mad:
     

Share This Page