New Player Counter - Really Simple

Discussion in 'Plugin Requests' started by ckav11, May 7, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    ckav11

    Plugin category: Players

    Suggested name: NewJoinCounter

    What I want: I would like this plugin to count the amount of new players that join my server and read/write that amount to a specified MySQL database as I have multiple hub servers. I would also like to be able to customize the new player join message and have the variable for the join number that they are in the message

    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: No permissions are needed

    When I'd like it by: Thursday.
     
  2. Offline

    ckav11

    bump
     
  3. Offline

    snowtiger0_0

    I can make this for you but would you be fine if inside of the database/table I also stored all of the players' UUIDs so I could use that to determine if the player has joined before? (This would also make it so the counter has to start at 0 and it would start counting the player's first join from the time the plugin was added)

    The only other way I could think to do this is with the player.hasPlayedBefore() method, but that only counts from that server's world so it wouldn't be an accurate count.
     
  4. Offline

    ckav11

    Yeah I wouldn't care. A configurable table name would be nice too. Yes the first way is fine @PenguinHi5
     
  5. Offline

    snowtiger0_0

    Yeah I can make the table name configurable for you. I'll try to get the plugin finished tomorrow after school.
     
  6. Offline

    ckav11

    Alright thank you so much @PenguinHi5
    Edit: @PenguinHi5 Are you still working on this plugin?
     
    Last edited: May 11, 2016
  7. Offline

    snowtiger0_0

    Last edited: May 12, 2016
  8. Offline

    ckav11

    @PenguinHi5
    Alright thank you. I'll try it out shortly

    @PenguinHi5 It is not displaying the message in chat on the event of a new player joining. It is logging to the database though

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

    I Al Istannen

    @PenguinHi5
    You could also crawl the world folder to get the UUIDs of the players who have already played, before your plugin was activated. I haven't tried, but it could work. The player number would obviously be a bit off for them though, but for everyone after it should work.

    EDIT: Easier is this: Bukkit#getOfflinePlayers().
     
    Last edited: May 25, 2016
  10. Offline

    ObviousEmeralds

    I'll get on to it now
     
Thread Status:
Not open for further replies.

Share This Page