示例#1
0
        public void LoadDefaults()
        {
            EnableLevelUpNotification           = false;
            EnableLevelUpNotificationGlobal     = true;
            EnableRankNotificationOnJoin        = true;
            EnableRankNotificationOnJoinGlobal  = false;
            EnableRankNotificationOnLeaveGlobal = false;
            NotificationColor                = "Green";
            NotificationColorGlobal          = "Gray";
            NotificationColorJoinLeaveGlobal = "Green";

            FeexRanksDatabase = new classDatabase()
            {
                DatabaseAddress   = "localhost",
                DatabaseUsername  = "******",
                DatabasePassword  = "******",
                DatabaseName      = "unturned",
                DatabaseTableName = "ranks",
                DatabasePort      = 3306,
            };

            Events = new List <classEvent>()
            {
                new classEvent {
                    EventName = "KILLS_ZOMBIES_NORMAL", Notify = false, Points = 10
                },
                new classEvent {
                    EventName = "KILLS_ZOMBIES_MEGA", Notify = true, Points = 50
                },
                new classEvent {
                    EventName = "KILLS_PLAYERS", Notify = true, Points = 60
                }
            };

            Level = new List <classLevel>()
            {
                new classLevel()
                {
                    Points = 0, Name = "Pig"
                },
                new classLevel()
                {
                    Points = 100, Name = "Small Zombie", UconomyReward = true, UconomyNotify = true, UconomyAmount = 100
                },
                new classLevel()
                {
                    Points = 200, Name = "Zombie", KitReward = true, KitNotify = true, KitName = "Zombie"
                },
                new classLevel()
                {
                    Points = 500, Name = "Giant Zombie", KitReward = true, KitNotify = true, KitName = "Giant Zombie", PermissionGroupReward = true, PermissionGroupNotify = true, PermissionGroupName = "VIP", UconomyReward = true, UconomyNotify = false, UconomyAmount = 200
                }
            };
        }
        public void LoadDefaults()
        {
            EnableLevelUpNotification = false;
            EnableLevelUpNotificationGlobal = true;
            EnableRankNotificationOnJoin = true;
            EnableRankNotificationOnJoinGlobal = false;
            NotificationColor = "Green";
            NotificationColorGlobal = "Gray";

            FeexRanksDatabase = new classDatabase()
            {
                DatabaseAddress = "localhost",
                DatabaseUsername = "******",
                DatabasePassword = "******",
                DatabaseName = "unturned",
                DatabaseTableName = "ranks",
                DatabaseViewName = "ranks_view",
                DatabasePort = 3306
            };

            Events = new List<classEvent>()
            {
                new classEvent { EventName = "KILLS_ZOMBIES_NORMAL", Notify = false, Points = 10 },
                new classEvent { EventName = "KILLS_ZOMBIES_MEGA", Notify = true, Points = 50 },
                new classEvent { EventName = "KILLS_PLAYERS", Notify = true, Points = 60 }
            };

            Level = new List<classLevel>()
            {
                new classLevel() { Points = 0, Name = "Pig"},
                new classLevel() { Points = 100, Name = "Small Zombie", UconomyReward = true, UconomyNotify = true, UconomyAmount = 100},
                new classLevel() { Points = 200, Name = "Zombie", KitReward = true, KitNotify = true, KitName = "Zombie"},
                new classLevel() { Points = 500, Name = "Giant Zombie", KitReward = true, KitNotify = true, KitName = "Giant Zombie", UconomyReward = true, UconomyNotify = false, UconomyAmount = 200}
            };
        }