Web Statistics plugin

Discussion in 'Archived: Plugin Requests' started by niels1189, Jun 8, 2014.

  1. Offline

    niels1189

    I'm looking for a plugin that can send data to an API that will then insert it into the databases.
    I don't want a bit of data here and there, but I want ALL data sent.
    NOTE: I'M NOT LOOKING FOR AN API OR WEBSITE, just the plugin that sends the data


    I want to know everything except block breaking, placing and using.


    I want a plugin that sends these data (as an example)
    - First join (for plugin)
    on first join it should at least send this data:
    -UUID
    -player name
    -money of player
    -OP (op or not)

    -IP (onlogin)
    -Rank (should work for groupmanager and other permission plugins)
    - login
    - logout
    - chat message
    - command usage
    - pay money in some way (/pay, /buy, /sell) (to keep track of money)
    - time user was online (not afk) when logging out?


    permissions:
    <pluginname>.reload

    commands:
    /<pluginname> reload



    I might have missed some info, If anyone wants to create this that would be really great



    This is an idea and idk if you can do this but:
    Have an API in the plugin that can check if the user has a certain permission or not.
     
  2. Online

    timtower Administrator Administrator Moderator

    niels1189 The jailed and muted and the time online, you probably want to tell where that comes from.
    And login and logout?
     
  3. Offline

    niels1189

    Essentials, but I guess I can do that myself when I code the API, since all commands are sent.
    I'll get those off the list now.

    the time online is just a, Time of logging out - Time of logging in
     
  4. Online

    timtower Administrator Administrator Moderator

    Now I am getting confused.
    You want a plugin that just sends the stuff where you hook into?
     
  5. Offline

    niels1189

    The data should be sent in post requests or get requests to a website.
    The website (url) will have a php api that will insert the data into the database.

    So yes, I just want a plugin that sends the data, that's all. (and a reload command because why not)

    It can be made public and once I'm done with the website & API I can make that public too so people can download and use both.
     
  6. Online

    timtower Administrator Administrator Moderator

    http://www.mkyong.com/java/how-to-send-http-request-getpost-in-java/
    And why not straight into mysql?
     
  7. Offline

    niels1189

    Because I can use the PHP api to do more with the data.
    I can code PHP but I can't code java with bukkit plugins.

    This allows me to do whatever I want with the data in whatever way I want.
    meaning I don't have to bother you every 10 minutes to change something.
     
  8. Online

    timtower Administrator Administrator Moderator

    How do you want to get those in yourself then?
     
  9. Offline

    niels1189

    $_GET[data] or $_POST[data]

    and then use PDO::Statements to insert the data into the SQL database.
    PDO statements prevent SQL injection
     
  10. Online

    timtower Administrator Administrator Moderator

    niels1189 So you really want to upload everything that happens on the server?
     
  11. Offline

    niels1189

    I want to store them and keep track of them, Yes. Why?
    Not exactly everything, but at least the things mentioned at the top

    Is it that stupid then?
     
  12. Offline

    davewolax

    niels1189 You can use Lolmewn stats. it works perfect for your needs.
    latest version of this plugin track even more data and informations!
    It's very useful and easy to use. you can define a database (internal or external) so it will save all stats and information in to the database. nice and clean.
    Please do not ask Developers to make a plugin that already exists!
    http://dev.bukkit.org/bukkit-plugins/lolmewnstats/
     
  13. Online

    timtower Administrator Administrator Moderator

    It will require a lot of bandwidth to send all those things.
    You probably want to put stuff together.
    When do you want to send the rank etc?
    You can do that all when they join and leave, that is pretty simple. Can contain IP, UUID, player name, money, OP, rank
    The other events will just use the UUID and the required string
    Unless you want more. But if you do:
    List all events that you want and what variables you want them to send
     

Share This Page