protected internal override void OnPurchase(Player p, string args) { if (args.Length == 0) { OnStoreCommand(p); return; } string color = Matcher.FindColor(p, args); if (color == null) { return; } string name = Colors.Name(color); if (!CheckPrice(p)) { return; } if (color == p.titlecolor) { p.Message("&WYour title color is already " + color + name); return; } if (!PlayerOperations.SetTitleColor(p, p.name, name)) { return; } Economy.MakePurchase(p, Price, "%3Titlecolor: " + color + name); }
protected override void SetPlayerData(Player p, string target, string colName) { PlayerOperations.SetTitleColor(p, target, colName); }