Day not advance when skip nightNot An Issue
after vote repeat the same day (like day 15... vote, day 15 again) and cant trigger the events!! some help pleas
The day is changed on a successful vote, it doesnt stay the same
nope, i check this and dont advance, change the hour but not the day number, and not trigger the server events

need some perms or something? have the same problem in 3 servers
Not sure what you are checking but it does advance the day

The code


And heres some debug I added to show that the day is changing
i have this in the file, downloaded from here
maybe need to replace some code?


if (success)
{
server.Time = server.Time.Date + TimeSpan.Parse(configData.Options.TimeToSet);
server.Time.Date.AddDays(1);
server.Broadcast($"{configData.Messaging.MainColor}{GetMSG("Voting was successful, skipping night.")}</color>");
}
else
{
server.Broadcast($"{configData.Messaging.MainColor}{GetMSG("Voting was unsuccessful.")}</color>");
}

Merged post

hi again, i replaced to:

TOD_Sky.Instance.Cycle.Hour= 8;
TOD_Sky.Instance.Cycle.Day = TOD_Sky.Instance.Cycle.Day + 1;

(the first line you send dont work) now works, ty
Thats not from this plugin, you are using the universal skip night plugin
:V lol
Locked automatically