예제 #1
0
        public void Apply(TSPlayer player)
        {
#if DEBUG
            Console.WriteLine($"Applying {Name} to {player.Name}");
#endif
            player.EnterSSC();

            try
            {
                player.ApplyInventory(Items);
            }
            catch (Exception e)
            {
                player.SendErrorMessage("An error occurred while applying the preset inventory to your character." + "\n" +
                                        "Please contact your server's administrator.");
                TShock.Log.Error(e.ToString());
            }
        }