Release 1.0.10

This commit is contained in:
zontreck 2025-05-03 14:23:18 -07:00
parent 7fb2d38c3d
commit 9715975a48
2 changed files with 11 additions and 8 deletions

View file

@ -243,6 +243,11 @@ namespace AriasServerUtils
.RequiresPrivilege(Privilege.controlserver)
.HandleWith(TestSleep)
.EndSubCommand()
.BeginSubCommand("sleepy")
.RequiresPlayer()
.RequiresPrivilege(Privilege.controlserver)
.HandleWith(Events.HandleSleepyDebug)
.EndSubCommand()
.EndSubCommand();
api.ChatCommands.Create("setwarp").RequiresPlayer().RequiresPrivilege(Privilege.chat).WithDescription("Creates a new server warp").WithArgs(parsers.OptionalWord("name")).HandleWith(Events.HandleWarpUpdate);
@ -255,8 +260,6 @@ namespace AriasServerUtils
api.ChatCommands.Create("rtp").RequiresPlayer().RequiresPrivilege(Privilege.chat).WithArgs(parsers.OptionalInt("maxDist", defaultValue: -1)).WithDescription("Seeks a position possibly thousands of blocks away to teleport to.").HandleWith(Events.HandleRTP);
api.ChatCommands.Create("listcooldowns").RequiresPrivilege(Privilege.chat).WithDescription("Lists the cooldown settings on the server, as well as your own active cooldowns if applicable.").HandleWith(Events.HandleListCooldowns);
api.ChatCommands.Create("debugasu_sleepy").RequiresPlayer().RequiresPrivilege(Privilege.controlserver).WithDescription("Debugging command to test the sleeping system").HandleWith(Events.HandleSleepyDebug);
}
private TextCommandResult TestSleep(TextCommandCallingArgs args)
@ -331,7 +334,7 @@ namespace AriasServerUtils
if (Sleeping)
{
API.Logger.Notification($"Game Hours: {API.World.Calendar.TotalHours}, Difference: {API.World.Calendar.TotalHours - Hours}");
//API.Logger.Notification($"Game Hours: {API.World.Calendar.TotalHours}, Difference: {API.World.Calendar.TotalHours - Hours}");
if (API.World.Calendar.TotalHours - Hours >= 6)
{
Sleeping = false;
@ -346,7 +349,7 @@ namespace AriasServerUtils
API.World.Calendar.RemoveTimeSpeedModifier("asu_psp");
API.Logger.Notification("Stopping PSP Time Acceleration");
//API.Logger.Notification("Stopping PSP Time Acceleration");
}
return;
}
@ -387,7 +390,7 @@ namespace AriasServerUtils
int Percentage = TotalInBed * 100 / TotalOnline;
API.Logger.Notification($"Percentage of players in bed: ${Percentage}, Required percentage: ${config.PlayerSleepingPercentage}");
//API.Logger.Notification($"Percentage of players in bed: {Percentage}, Required percentage: {config.PlayerSleepingPercentage}");
if (Percentage >= config.PlayerSleepingPercentage)
{
@ -404,7 +407,7 @@ namespace AriasServerUtils
EBT.IsSleeping = true;
API.Logger.Notification("Starting PSP Time Acceleration");
//API.Logger.Notification("Starting PSP Time Acceleration");
bed.MountedBy.TryUnmount(); // Stand up. We cant trigger the real sleep phase, but all code for starting time accel has been executed.
}

View file

@ -3,8 +3,8 @@
"modid": "ariasserverutils",
"name": "Aria's Server Utilities",
"authors": ["zontreck"],
"description": "A collection of server utilities\n\nBuild Date: 05-3-2025 @ 2:01 PM MST",
"version": "1.0.10-dev.10",
"description": "A collection of server utilities\n\nBuild Date: 05-3-2025 @ 2:23 PM MST",
"version": "1.0.10",
"dependencies": {
"game": ""
}