generated from AriasCreations/vsmodtemplate
Adds a config flag for managing warps
This commit is contained in:
parent
e561ced568
commit
e776a6bb9e
4 changed files with 42 additions and 2 deletions
34
AriasServerUtils/Globals.cs
Normal file
34
AriasServerUtils/Globals.cs
Normal 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>();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue