Error: Failed to call hook 'OnPlayerRespawn' on pluginSolved
Failed to call hook 'OnPlayerRespawn' on plugin 'PowerSpawn v1.3.1' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.PowerSpawn.FindPregeneratedPosition (Oxide.Plugins.PowerSpawn+Configuration+Profile profile) [0x00076] in <5813f275779848f69e19a14853a6e927>:0                                                          6kb/s in, 48kb/s out
  at Oxide.Plugins.PowerSpawn.OnPlayerRespawn (BasePlayer player) [0x00049] in <5813f275779848f69e19a14853a6e927>:0
  at Oxide.Plugins.PowerSpawn.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000f6] in <5813f275779848f69e19a14853a6e927>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <87ce9ac9776a48658bc55eae6debe38b>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <b6d06fce9e044af4a6ddc8d724bd3b0b>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <b6d06fce9e044af4a6ddc8d724bd3b0b>:0


my config PowerSpawn.json:

 

{
  "Profiles": {
    "StashTraps - x6": {
      "Minimal Distance To Building": 16,
      "Minimal Distance To Collider": 8,
      "Raycast Distance Above": 20.0,
      "Number Of Attempts To Find A Position Per Frame": 160,
      "Number Of Positions Per Frame": 16,
      "Number Of Attempts To Find A Pregenerated Position": 400,
      "Pregenerated Positions Amount": 4000,
      "Pregenerated Amount Check Frequency (Seconds)": 90.0,
      "Biomes Threshold": {
        "Temperate": 0.5
      },
      "Topologies Allowed": [],
      "Topologies Blocked": []
    }
  },
  "Respawn Profile": "",
  "Respawn Locations Group": -2,
  "Enable Respawn Locations Group": false,
  "Enable Respawn Management": true,
  "Location Management Commands": [
    "loc",
    "location",
    "ps"
  ]
}

StashTraps.json

{
  "Power Spawn Profile Name": "StashTraps - x6",
  "Commands": [
    "stashtraps",
    "st",
    "stashes"
  ], 

..... more config.

Try specifying a profile for the respawns, perhaps it fails to find it -> errors.

FXJUcF29UAEv7RU.png misticos

Try specifying a profile for the respawns, perhaps it fails to find it -> errors.

Good afternoon, thank you for your suggestion. Assuming that is the issue, I am unable to understand what to write there, or I may not even understand its purpose. If you could provide more details, I would appreciate it.

Create a new respawn profile like you did for stashtraps, but specifically for player respawns (if you want the plugin to manage random respawns). By default it's "" (no name). If you don't want the plugin to manage player respawns, set Enable Respawn Management to false.

Locked automatically