Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Player Register

Comments in 'Plugin Development' started by Asparanc, Feb 23, 2015.

  1. Asparanc
    Offline

    Asparanc Active Member

    Joined:
    Feb 20, 2015
    Posts:
    210
    Minecraft User:
    Asparanc
    Hey all i would like know how create config file for a player when he join the server for the first time, i think it's onPlayerJoin but i'm not sure.
  2. mamayadesu
    Offline

    mamayadesu Active Member Plugin Developer

    Joined:
    Sep 19, 2013
    Posts:
    146
    Plugins:
    4
    Minecraft User:
    mamayadesu
    It possible with onPlayerJoin(). You have questions?
  3. Asparanc
    Offline

    Asparanc Active Member

    Joined:
    Feb 20, 2015
    Posts:
    210
    Minecraft User:
    Asparanc
    It was my question :) thx
  4. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    No, you can use:
    PHP:
    $player->hasPlayedBefore();
    That function returns bool "false" is its first player join, else (I believe) it returns the last played time

Share This Page

Advertisement