public static int amount      = 5;     // The amount given to the player
 public override void Load(bool startup)
 {
     dailyList = PlayerExtList.Load("text/dailybonus.txt");     // Load the list so we can start using it
     if (AutoReward)
     {
         OnPlayerConnectEvent.Register(HandlePlayerConnect, Priority.High);
     }
     else
     {
         Command.Register(new CmdDailyBonus());
     }
 }
        public override void Load(bool startup)
        {
            Command.Register(new CmdAccept());
            Command.Register(new CmdDeny());
            Command.Register(new CmdDivorce());
            Command.Register(new CmdMarry());

            marriages   = PlayerExtList.Load("extra/marriages.txt");
            onlineLine  = (p, who) => FormatMarriedTo(p, who.name);
            offlineLine = (p, who) => FormatMarriedTo(p, who.Name);
            OnlineStat.Stats.Add(onlineLine);
            OfflineStat.Stats.Add(offlineLine);
        }
Exemple #3
0
        public override void Load(bool startup)
        {
            if (!Directory.Exists("plugins/DiscordVerify"))
            {
                Directory.CreateDirectory("plugins/DiscordVerify");
            }
            // If the directory does not exist, then we will just create it.
            if (!File.Exists("plugins/DiscordVerify/verified.txt"))
            {
                File.Create("plugins/DiscordVerify/verified.txt");
            }
            // If the file does not exist, then we will also create that file. We don't want our user to do it manually.
            verified = PlayerExtList.Load("plugins/DiscordVerify/verified.txt");
            // Purpose is not to have it break.
            OnChannelMessageEvent.Register(HandleDiscordMessage, Priority.High);

            Command.Register(new CmdVerify());
        }
Exemple #4
0
 public static void LoadTeams()
 {
     Teams       = PlayerExtList.Load("teams.txt");
     teamsLoaded = true;
 }
 public override void Load(bool startup)
 {
     list = PlayerExtList.Load("text/rewardtimes.txt");
     cmd  = new CmdReward();
     Command.Register(cmd);
 }