Global chat message when new player joins

(Thanks VenkSociety!)
This commit is contained in:
Goodlyay 2018-01-16 19:42:57 -08:00
parent 58c1ae0649
commit e0befbca37

View File

@ -221,6 +221,7 @@ namespace MCGalaxy {
DataTable data = Database.Backend.GetRows("Players", "*", "WHERE Name=@0", name);
if (data.Rows.Count == 0) {
PlayerData.Create(this);
Chat.MessageGlobal(ColoredName + " %Shas connected for the first time!", false);
SendMessage("Welcome " + ColoredName + "%S! This is your first visit.");
} else {
PlayerData.Load(data, this);