Jump to content

Hooks

Fixed 3.0.4 3.1.1

IIIaKa
IIIaKa

Posted

Hello, in version 3.0.0 you added the hooks OnRestartScheduled and OnRestartCancelled. Unfortunately, they don't work as expected.
OnRestartScheduled is triggered immediately when a restart timer is set, which causes the status bar to be shown permanently, even if the restart is more than 20 hours away.
What’s needed is a hook that fires 30 or 60 minutes before the restart, a hook that can be used as a trigger to display a countdown UI before the restart, similar to the default OnServerRestart hook.
Also, OnRestartCancelled should only fire when this countdown is cancelled.

Thank you!


https://codefling.com/files/sc/22223-compatability-with-another-restart-plugin/#findComment-110913

  • Like 1
crash

Posted

7 hours ago, IIIaKa said:

Hello, in version 3.0.0 you added the hooks OnRestartScheduled and OnRestartCancelled. Unfortunately, they don't work as expected.
OnRestartScheduled is triggered immediately when a restart timer is set, which causes the status bar to be shown permanently, even if the restart is more than 20 hours away.
What’s needed is a hook that fires 30 or 60 minutes before the restart, a hook that can be used as a trigger to display a countdown UI before the restart, similar to the default OnServerRestart hook.
Also, OnRestartCancelled should only fire when this countdown is cancelled.

Thank you!


https://codefling.com/files/sc/22223-compatability-with-another-restart-plugin/#findComment-110913

Hello! Ill take a look shortly

  • Like 2
crash

Posted

Changed Status from Pending to Work in Progress

crash

Posted

Changed Status from Work in Progress to Fixed

Changed Fixed In to Next Version

1.9m

Downloads

Total number of downloads.

8.9k

Customers

Total customers served.

131.4k

Files Sold

Total number of files sold.

2.7m

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.