-
-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathHEROsModServerConfig.cs
36 lines (30 loc) · 974 Bytes
/
HEROsModServerConfig.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 HEROsMod.HEROsModNetwork;
using System.ComponentModel;
using Terraria.Localization;
using Terraria.ModLoader;
using Terraria.ModLoader.Config;
namespace HEROsMod
{
class HEROsModServerConfig : ModConfig
{
public override ConfigScope Mode => ConfigScope.ServerSide;
/*
[Label("Disable Achievements")]
[Tooltip("While this is true, vanilla steam achievements will not be obtained.\nUse this if you don't wish to get achievements illegitimately.")]
[DefaultValue(false)]
public bool DisableAchievements { get; set; }
*/
[DefaultValue(false)]
public bool FreezeNonLoggedIn { get; set; }
[DefaultValue(true)]
[ReloadRequired]
public bool Telemetry { get; set; }
public override bool AcceptClientChanges(ModConfig pendingConfig, int whoAmI, ref NetworkText message)
{
if (Network.Players[whoAmI].Group.IsAdmin)
return true;
message = this.GetLocalization("AcceptClientChangesMessage").ToNetworkText();
return false;
}
}
}