Jump to content

plugin does not load

Not a Bug 3.2.2

 

Falha ao chamar o gancho 'OnServerinitialized' On Plugin 'WelcomePanel v3.0.7' (NullReferenceException: Referência de objeto não definido como uma instância de um objeto) em Oxide.Plugins.welcomePanel.registerCommands () [0x0000B] em <807f4309251e40b4b09333333333131313131
  31311ePaNeR40B433333333333333333333333333333101e 
  . .Plugins.WelcomePanel.OnServerInitialized () [0x0002a] em <807f4309251e40b4b09339ee18e6b2e2>:0 
  em Oxide.Plugins.WelcomePanel.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0039a] em <8 07f4309251e40b4b09339ee18e6b2e2 > :0 
  em Oxide.Plugins.CSharpPlugin.InvokeMethod (método Oxide.Core.Plugins.HookMethod, System.Object[] args) [0x00079] em <23ba99f131254889867c71f0bd137b1d>:0 
  em Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] em <157a94ee66ab4a7991faecd1eb84be3b>:0 
  em Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System. Object[] args) [0x00060] em <157a94ee66ab4a7991faecd1eb84be3b>:0

O código apresenta um erro NullReferenceException, especificamente na chamada ao hook 'OnServerInitialized' do plugin 'WelcomePanel v3.0.7'. O erro ocorre na função RegisterCommands() do plug-in WelcomePanel, localizado em um local não especificado no arquivo de origem fornecido (sem caminho fornecido no log de erros).

O problema surge porque há uma referência a um objeto que não foi inicializado. Isso significa que uma variável está sendo usada antes de receber um valor ou está apontando para nulo. O erro pode estar relacionado a uma chamada de variável, objeto ou método ausente ou mal utilizada.

Para corrigir o erro, você precisa investigar a função RegisterCommands() no plug-in WelcomePanel e identificar onde ocorre a referência nula. Certifique-se de que todas as variáveis e objetos necessários sejam inicializados corretamente antes de usá-los. Além disso, verifique se as dependências necessárias para o funcionamento do plug-in estão instaladas e configuradas corretamente.

É importante observar que o trecho de código fornecido é apenas uma parte do rastreamento de pilha de erro e, sem analisar o código completo do plug-in e seu contexto de uso, não é possível determinar a causa exata do problema.

 

WelcomePanel.json

Share this comment


Link to comment

I am getting this error with the 3.2.2 file without the 3.0.7 file on the server. Do both CS files need to be included?

 

[WelcomePanel] Unloading WelcomePanel now...
Failed to call hook 'Unload' on plugin 'WelcomePanel v3.2.2' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.WelcomePanel.Unload () [0x00000] in <d861ce508ec141d6aed0bc2e3c547ef3>:0 
  at Oxide.Plugins.WelcomePanel.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0022a] in <d861ce508ec141d6aed0bc2e3c547ef3>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <23ba99f131254889867c71f0bd137b1d>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <157a94ee66ab4a7991faecd1eb84be3b>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <157a94ee66ab4a7991faecd1eb84be3b>:0 
Unloaded plugin WelcomePanel v3.2.2 by David

Edited by FroggerFTW

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

82.4k

Files Sold

Total number of files sold.

1.6m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.