Inheritance: BasePlugin
Exemple #1
0
        public override void Load()
        {
            Name = "House";
            Description = "A plugin to allow players to define safe areas";
            Author = "amarriner";
            Version = "0.3.6.1";
            TDSMBuild = 31;

            plugin = this;

            this.registerHook(Hooks.PLAYER_TILECHANGE);
            this.registerHook(Hooks.PLAYER_CHEST);
            this.registerHook(Hooks.PLAYER_EDITSIGN);
            this.registerHook(Hooks.DOOR_STATECHANGE);
            this.registerHook(Hooks.TIME_CHANGED);
            this.registerHook(Hooks.PLAYER_FLOWLIQUID);

            AddCommand("h")
                .WithAccessLevel(AccessLevel.PLAYER)
                .WithDescription("House Commands, type /house ? for help")
                .WithHelpText("/house <command> <parameter> <parameter>")
                .Calls(Commands.Commands.house);

            AddCommand("house")
                .WithAccessLevel(AccessLevel.PLAYER)
                .WithDescription("House Commands, type /house ? for help")
                .WithHelpText("/house <command> <parameter> <parameter>")
                .Calls(Commands.Commands.house);
        }
Exemple #2
0
 public Person(string name, House house)
 {
     this.name  = name;
     this.house = house;
 }
Exemple #3
0
 public Person()
 {
     name  = "mateusz";
     house = new House(666);
 }
Exemple #4
0
        protected override void Initialized(object state)
        {
            plugin = this;

            AddCommand("h")
                .WithAccessLevel(AccessLevel.PLAYER)
                .WithDescription("House Commands, type /house ? for help")
                .WithHelpText("/house <command> <parameter> <parameter>")
                .Calls(Commands.Commands.house);

            AddCommand("house")
                .WithAccessLevel(AccessLevel.PLAYER)
                .WithDescription("House Commands, type /house ? for help")
                .WithHelpText("/house <command> <parameter> <parameter>")
                .Calls(Commands.Commands.house);
        }