-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBMConfig.cs
36 lines (30 loc) · 871 Bytes
/
BMConfig.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System.ComponentModel;
using Terraria;
using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader.Config;
namespace BetterMultiplayer
{
public class BMConfig : ModConfig
{
public override ConfigScope Mode => ConfigScope.ServerSide;
public static BMConfig Instance;
[DrawTicks]
[OptionStrings(new string[] { "None", "Red", "Green", "Blue", "Yellow", "Pink" })]
[DefaultValue("Red")]
public string TeamToJoin;
[DefaultValue(true)]
public bool NoBossFightRespawn;
[DefaultValue(true)]
public bool WitchDoctorWormhole;
public override bool AcceptClientChanges(ModConfig pendingConfig, int whoAmI, ref NetworkText message)
{
if (!NetMessage.DoesPlayerSlotCountAsAHost(whoAmI))
{
message = NetworkText.FromKey("tModLoader.ModConfigRejectChangesNotHost");
return false;
}
return true;
}
}
}