On_PlayerConnected

Jan 17, 2017
On_PlayerConnected
  • Method:
    On_PlayerConnected

    Argument(s):
    Fougerite.Player Player

    Examples:
    Python:

    Code (Python):
    def On_PlayerConnected(self, Player):
       Server.Broadcast(Player.Name + " has connected to the server!")
    Javascript:
    Code (Javascript):
    function On_PlayerConnected(Player) {
        Server.Broadcast(Player.Name + " has connected to the server!");
    }

    C#:
    Code (C#):

    public void Player_Connect(Fougerite.Player Player)
    {
       Fougerite.Server ServerObj = Fougerite.Server.GetServer();
       ServerObj.Broadcast(Player.Name + " has connetcted to the server!");
    }