Jump to content

Sleeping Removes Display

Work in Progress 0.1.17

RocketMyrr
RocketMyrr

Posted (edited)

If i have a status and go to sleep for teleport for something like ntele or portals or jail it takes the status away and nothing will show after waking up until I reload the entire Plugin. 

Edited by RocketMyrr
IIIaKa

Posted

Changed Status from Pending to Work in Progress

IIIaKa

Posted (edited)

@RocketMyrr
Hello!
Do I understand correctly that you have a status bar displayed, but when you teleport using plugins, your player appears to be 'sleeping' after the teleportation and once they stand up, the bar no longer appears?
If so, I tried teleporting home using NTeleportation and when I stood up, the bar became visible again.
Which bar was displayed for you?

Edited by IIIaKa
RocketMyrr

Posted

That is correct. It’s for Vanish status and also a custom status I have as well. I’ll have the status before I tp and once I got to sleep to to and then wake back up it’s gone. I can try vanishing/unvanishing multiple times and it won’t come back. Only comes back if I reload the advanced status plugin entirely

RocketMyrr

Posted (edited)

also I have tried sending a new status via a plugin and it won’t send as well until I reload the plugin. Jail are one of the  plugins that it does it with that puts you to sleep and when you wake up it disappears and won’t come back till reload

Edited by RocketMyrr
IIIaKa

Posted

Hello, I don't quite understand which plugins exactly are causing the issue for you. You mentioned that NTeleportation wasn't working either, but I checked it and everything is fine. Then you said the issue occurs only with the Jail plugin. I suspect that the OnPlayerSleepEnded hook isn't triggering for you. Also, which mod are you using Oxide or Carbon?

Since I don't have access to the Jail plugin, try installing the test plugin I sent and use teleportation. A message should appear in the console when the player goes to sleep, and another one when they wake up.
Test.cs

1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.3k

Files Sold

Total number of files sold.

2.3m

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.