Inheritance: TerrariaApi.Server.TerrariaPlugin, IDisposable
        public ProtectorPlugin(Main game)
            : base(game)
        {
            this.pluginInfo = new PluginInfo(
            "Protector",
            Assembly.GetAssembly(typeof(ProtectorPlugin)).GetName().Version,
            "Beta",
            "CoderCow",
            "Protects blocks and objects from being changed."
              );

              this.Order = 1;
              #if DEBUG
              if (Debug.Listeners.Count == 0)
            Debug.Listeners.Add(new ConsoleTraceListener());
              #endif

              this.trace = new PluginTrace(ProtectorPlugin.TracePrefix);
              ProtectorPlugin.latestInstance = this;
        }
Beispiel #2
0
        public ProtectorPlugin(Main game) : base(game)
        {
            this.pluginInfo = new PluginInfo(
                "Protector",
                Assembly.GetAssembly(typeof(ProtectorPlugin)).GetName().Version,
                "Beta",
                "CoderCow",
                "Protects blocks and objects from being changed."
                );

            this.Order = 1;
      #if DEBUG
            if (Debug.Listeners.Count == 0)
            {
                Debug.Listeners.Add(new ConsoleTraceListener());
            }
      #endif

            this.trace = new PluginTrace(ProtectorPlugin.TracePrefix);
            ProtectorPlugin.latestInstance = this;
        }