Beispiel #1
0
 public override void Load(bool startup)
 {
     Command.Register(new CmdAdventure());
     Command.Register(new CmdAnnounce());
     Command.Register(new CmdBoost());
     Command.Register(new CmdListLevels());
     Command.Register(new CmdMoveEverything());
     Command.Register(new CmdSilentHold());
     Command.Register(new CmdSilentModel());
 }
 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());
     }
 }
Beispiel #3
0
        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);
        }
Beispiel #4
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());
        }
 public override void Load(bool startup)
 {
     OnPlayerConnectEvent.Register(HandlePlayerConnect, Priority.High);
     Command.Register(new CmdSilentModel());
     Server.MainScheduler.QueueRepeat(DoBlockLoop, null, TimeSpan.FromMilliseconds(100));
 }
Beispiel #6
0
 public override void Load(bool startup)
 {
     InitDB();
     Command.Register(new CmdTimeAFK());
     Server.MainScheduler.QueueRepeat(CheckIdle, null, TimeSpan.FromSeconds(60));
 }
Beispiel #7
0
 public override void Load(bool startup)
 {
     Command.Register(new CmdSomething());
 }