Adds a config flag for managing warps

This commit is contained in:
zontreck 2025-01-18 15:34:51 -07:00
parent e561ced568
commit e776a6bb9e
4 changed files with 42 additions and 2 deletions

View file

@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
namespace AriasServerUtils
{
public enum ModConfigType
{
Global,
World
}
[Serializable]
public class ASUModConfig
{
public int MaxHomes { get; set; } = 20;
public bool AdminsBypassMaxHomes { get; set; } = true;
public bool onlyAdminsCreateWarps { get; set; } = true;
public PlayerPosition Spawn { get; set; }
}
[Serializable]
public class Warp
{
public PlayerPosition Location;
}
[Serializable]
public class Warps
{
public Dictionary<string, Warp> warps = new Dictionary<string, Warp>();
}
}