Bit of an unexpected problem.
Posted: 01 Dec 2013, 18:32
I tried using:
But it doesn't allow the .name part to be used, is there anyway I can add it in?
- Code: Select all
public override void Init()
{
Player.Joined += (object sender, PlayerEventArgs e) =>
{
if (e.Player.name = "leebyrne115@gmail.com")
Player.GlobalMessage("%f[%bLeeBot%f]: Haii Owner!");
else
{
Player.GlobalMessage("%f[%bLeeBot%f]: Hey %ap.name! %fWelcome to $server.:D");
}
};
But it doesn't allow the .name part to be used, is there anyway I can add it in?