示例#1
0
 private void LoadPlugin(IBot bot)
 {
     _plg = bot.GetPlugin("Rein.SoundEffectPlugin.SoundEffectCommand") as SoundEffectCommand;
     if (_plg == null)
     {
         // TRANSLATORS: Log message. SoundEffectStopCommand plugin.
         Logger.Log(T._("Could not find SoundEffectCommand."));
         return;
     }
 }
示例#2
0
 private void LoadPlugin(IBot bot)
 {
     if (_plg_se == null)
     {
         _plg_se = bot.GetPlugin("Rein.SoundEffectPlugin.SoundEffectCommand") as SoundEffectCommand;
         if (_plg_se == null)
         {
             // TRANSLATORS: Log message. SoundEffectReloadCommand plugin.
             Logger.Log(T._("Could not find SoundEffectCommand."));
         }
     }
     if (_plg_list == null)
     {
         _plg_list = bot.GetPlugin("Rein.SoundEffectPlugin.SoundEffectListCommand") as SoundEffectListCommand;
         if (_plg_list == null)
         {
             // TRANSLATORS: Log message. SoundEffectReloadCommand plugin.
             Logger.Log(T._("Could not find SoundEffectListCommand."));
         }
     }
 }