feat: New Jail System (#2215)
New Jail System for MUO ---------------------------- Commands: [jail [player] [reason] - Jail with time escalation per offense (5 to 120 minutes, GM only) [unjail [player] - Manual release from jail regardless of time (GM only) [jailinfo [player] - Check jail status and history (GM only) [jailrecord - Checks their own jail record stats (player access) Jail/Unjail can be found in the client view of a player in Admin Gump  Jail record gump, invoked with [jailrecord (30 second cooldown) 
This commit is contained in:
parent
c2c486c06e
commit
5f0561b7fc
8 changed files with 669 additions and 4 deletions
25
Projects/UOContent/Systems/JailSystem/JailRecord.cs
Normal file
25
Projects/UOContent/Systems/JailSystem/JailRecord.cs
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
using System;
|
||||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Systems.JailSystem;
|
||||
|
||||
[SerializationGenerator(0)]
|
||||
public partial class JailRecord
|
||||
{
|
||||
[SerializableField(0)]
|
||||
private int _jailCount;
|
||||
|
||||
[SerializableField(1)]
|
||||
private DateTime _lastJailed;
|
||||
|
||||
[SerializableField(2)]
|
||||
private DateTime _jailEndTime;
|
||||
|
||||
[SerializableField(3)]
|
||||
private string _lastJailReason;
|
||||
|
||||
[SerializableField(4)]
|
||||
private Mobile _jailedBy;
|
||||
|
||||
public bool IsCurrentlyJailed => JailEndTime > Core.Now;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue