mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
Global chat message when new player joins
(Thanks VenkSociety!)
This commit is contained in:
parent
58c1ae0649
commit
e0befbca37
@ -221,6 +221,7 @@ namespace MCGalaxy {
|
|||||||
DataTable data = Database.Backend.GetRows("Players", "*", "WHERE Name=@0", name);
|
DataTable data = Database.Backend.GetRows("Players", "*", "WHERE Name=@0", name);
|
||||||
if (data.Rows.Count == 0) {
|
if (data.Rows.Count == 0) {
|
||||||
PlayerData.Create(this);
|
PlayerData.Create(this);
|
||||||
|
Chat.MessageGlobal(ColoredName + " %Shas connected for the first time!", false);
|
||||||
SendMessage("Welcome " + ColoredName + "%S! This is your first visit.");
|
SendMessage("Welcome " + ColoredName + "%S! This is your first visit.");
|
||||||
} else {
|
} else {
|
||||||
PlayerData.Load(data, this);
|
PlayerData.Load(data, this);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user