示例#1
0
 /// <summary>
 /// This is the load method, the load method is called whenever the plugin is loaded
 /// this can be when the server starts up, or when using /pload
 /// </summary>
 /// <param name="startup">Is the plugin being loaded at server startup?</param>
 public override void Load(bool startup)
 {
     block = new Player.BlockchangeEventHandler2(blockuse);
     command = new Player.OnPlayerCommand(commanduse);
     Player.PlayerCommand += command;
     chat = new Player.OnPlayerChat(chatuse);
     disconnect = new Player.OnPlayerDisconnect(disconnectuse);
     Player.PlayerChat += chat;
     Player.PlayerBlockChange += block;
     Player.PlayerDisconnect += disconnect;
 }
示例#2
0
 /// <summary>
 /// This is the load method, the load method is called whenever the plugin is loaded
 /// this can be when the server starts up, or when using /pload
 /// </summary>
 /// <param name="startup">Is the plugin being loaded at server startup?</param>
 public override void Load(bool startup)
 {
     block   = new Player.BlockchangeEventHandler2(blockuse);
     command = new Player.OnPlayerCommand(commanduse);
     Player.PlayerCommand += command;
     chat                      = new Player.OnPlayerChat(chatuse);
     disconnect                = new Player.OnPlayerDisconnect(disconnectuse);
     Player.PlayerChat        += chat;
     Player.PlayerBlockChange += block;
     Player.PlayerDisconnect  += disconnect;
 }