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) 
25 lines
511 B
C#
25 lines
511 B
C#
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;
|
|
}
|