예제 #1
0
 protected override void SetPlayerData(Player p, Player who, string[] args)
 {
     if (args.Length == 1)
     {
         string path = PlayerDB.LoginPath(who.name);
         if (File.Exists(path))
         {
             File.Delete(path);
         }
         Player.Message(p, "The login message of {0} %Shas been removed.",
                        who.ColoredName);
     }
     else
     {
         PlayerDB.SetLoginMessage(who.name, args[1]);
         Player.Message(p, "The login message of {0} %Shas been changed to: {1}",
                        who.ColoredName, args[1]);
     }
 }