Results 1 to 6 of 6

Thread: [App] Sacnr player monitor v1.0

  1. #1
    Foreigner corny's Avatar
    Join Date
    Nov 2013
    Location
    Germany
    Posts
    291
    Rep Power
    1

    [App] Sacnr player monitor v1.0

    Sup,

    During christmas events this year I figured it would be cool to be notified when admins come online so you don't waste 3 hours waiting for them, so I made a little Java app that does that.
    Then I thought I might aswell make it notify you when your favourite friends / foes come online and also make it work for any SA:MP server, so I did that.
    Then I thought I might aswell make it public and available for everyone, so I did that.

    Pretty much you can run this in the background while doing something else on the pc, and when any admin or a player of your choice joins the server, a little notification sound will play.

    (Obviously you have to have Java installed to run this, but then again who doesn't have that already)

    Here's how it works:

    Code:
    Download and run the sacnr-player-monitor.jar application and follow the prompts:
    
    
    Monitor different server? [y/n]
    
    If `Yes` is chosen, the user can enter the address of a GTA:SA MP server.
    
    If `No` is chosen, the app will default to `server.sacnr.com:7777`.
    
    
    Check for SACNR admins? [y/n]
    
    (Prompted only if previous selection was `No`)
    
    If `Yes` is chosen, the app will scrape all current SACNR staff from sacnr.com and add them to target list.
    
    
    Add targets (separated by comma)
    
    Now the user can add players that are to be monitored like so: "Alpha, Delta, Gamma" (Case sensitive). 
    This Step can be skipped, if the user previously decided to add all SACNR staff to the target list.
    
    The app checks online players every 60 seconds and, if a new target player is online, plays a notification sound.
    The user is only notified once per target player joining.
    Here's what the thing looks like:



    Again, heres the Download (click on 'sacnr-player-monitor.jar').

    If you want to take a look at the source code you can do that here.
    If you run into any issues, feel free to post them here or pm me.

    Thanks to Markski for beta testing lol
    Last edited by corny; 03-01-2019 at 08:39 PM.





  2. #2
    SACNR Admin & Developer Markski's Avatar
    Join Date
    Jun 2014
    Location
    Ammu-Nation in Argentina
    Posts
    334
    Rep Power
    1
    Great work

  3. #3
    SACNR HiTmen Denim's Avatar
    Join Date
    Jan 2018
    Location
    Rat hole in Palomino Creek
    Posts
    58
    Rep Power
    0
    Amazing Work! keep it up.. Thanks for the Source code too :)

  4. #4
    Senior Member Jamie's Avatar
    Join Date
    Jun 2012
    Posts
    1,133
    Rep Power
    1
    I don't code Java, but I have a feeling you'd be able to remove the case sensitivity requirement by changing everything to lowercase through .toLowerCase()

    Somewhere around here, here and probably here

    Cool program though!

  5. #5
    Foreigner corny's Avatar
    Join Date
    Nov 2013
    Location
    Germany
    Posts
    291
    Rep Power
    1
    Quote Originally Posted by Jamie View Post
    I don't code Java, but I have a feeling you'd be able to remove the case sensitivity requirement by changing everything to lowercase through .toLowerCase()

    Somewhere around here, here and probably here

    Cool program though!
    You're right. I thought it doesn't make a difference but after second thought, spelling JaHanGiRs name correctly every time would be annoying.
    Gonna change that.

    Edit: Done.
    Last edited by corny; 03-01-2019 at 08:35 PM.





  6. #6
    Player End's Avatar
    Join Date
    May 2018
    Location
    Earth.
    Posts
    33
    Rep Power
    0
    Good Work Corny Keep it up. :)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •