1. Today i made a new plugin i put some messages to load and unload
    Load messages worked but the Unload one is not working..

    my code for the unload
    Code:
    function PLUGIN:OnPluginUnloaded(plugin)
    if self.Config.Settings.LogUnloadToConsole == "true" then
        print("*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^")
        print("[" .. self.Title .. "] " .. "Unloaded Successfully")
        print("*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^")
    end
    end
    
    tried without the
    Code:
    if self.Config.Settings.LogUnloadToConsole == "true" then
    
    too
     
    Last edited by a moderator: May 10, 2015
  2. That hook is for other plugins that are unloaded. If you want to do something on unloading you need Unload(). Also if you're just going to print messages, don't, when a plugin is loaded/unloaded a message is already printed so that is just useless spam.
     
  3. Ah okay about the spam i was just testing if some characters like ♫ can be printed