NullReferenceException at CanPlayersSleepSolved

how do you skip night?

also, I'm getting these errors in the console;

10:20 AM [Error] Failed to call hook 'CanPlayersSleep' on plugin 'Sleepless v0.0.2' (NullReferenceException: Object reference not set to an instance of an object)
  at uMod.Plugins.Sleepless.CanPlayersSleep (uMod.Plugins.HookEvent e) [0x00000] in <403745e97b64441aa2618a420eb39871>:0
  at (wrapper dynamic-method) System.Object.lambda_method(System.Runtime.CompilerServices.Closure,object,object[])
  at uMod.Plugins.HookMethod.Invoke (uMod.Common.IContext target, System.Object[] arguments) [0x000b4] in <ba1c6174f0b5461a819bf309db168cc6>:0
  at uMod.Plugins.HookDispatcher.Dispatch (uMod.Plugins.HookName hookName, System.Object[] args, uMod.Plugins.HookEvent e) [0x001b1] in <ba1c6174f0b5461a819bf309db168cc6>:0
  at uMod.Plugins.Plugin.CallHook (uMod.Plugins.HookName hookName, System.Object[] args, uMod.Plugins.HookEvent e) [0x00060] in <ba1c6174f0b5461a819bf309db168cc6>:0

There isn't a command at the moment, and night is skipped when sleeping, as normal. The error I'll look into, but appears to not actually be from the plugin.

I'm curious why the plugin is listed for download if it's impossible to use...maybe I don't understand the situation correctly??

Melonpopr

I'm curious why the plugin is listed for download if it's impossible to use...maybe I don't understand the situation correctly??

It's listed for download as it works just fine and as described.

what does it do that vanilla doesn't already do?

It changes the amount of players required to skip night, and optionally prevents night from happening.

ok, I don't remember how vanilla worked before installing this plugin, I was brand new to the game as a few days ago.

Melonpopr

ok, I don't remember how vanilla worked before installing this plugin, I was brand new to the game as a few days ago.

Vanilla requires all players to be asleep in a bed to skip night.
2in2ZZuyFp53fzQ.jpg Wulf
Vanilla requires all players to be asleep in a bed to skip night.

thank you for the explanation, I didn't realize that....we do like the way your plugin works but theres only 3-4 of us playing at the same time so far.  I wonder if this plugin will drive us crazy when the server becomes fully populated and sleeping is possibly too frequent.  I guess that's the reason for the threshold option in the config.  With the three/four of us being on the same "team" working together we coordinate sleeping so it's not been an issue.

How to fix it?

xa7Ry7IMKVxJK7t.jpg iframe

How to fix it?

This particular error you can ignore, but the fix would be made in uMod itself.
Locked automatically