diff --git a/AdminTools/Config.cs b/AdminTools/Config.cs index 4e39d26..827f860 100644 --- a/AdminTools/Config.cs +++ b/AdminTools/Config.cs @@ -11,7 +11,7 @@ public class Config : IConfig [Description("Whether or not to show logs used for debugging.")] public bool Debug { get; set; } = false; - [Description("Should Staff be in God Mode when they forceclass to Tutorial?? Default: false")] + [Description("Should Tutorials be in God Mode when Forceclassed? Default: false")] public bool GodTuts { get; set; } = false; [Description("Extending Command use for Getting a player (such as candy command and other parts of AdminTools). View the README on github for more info.")] diff --git a/AdminTools/EventHandlers.cs b/AdminTools/EventHandlers.cs index a6497a0..540f70a 100644 --- a/AdminTools/EventHandlers.cs +++ b/AdminTools/EventHandlers.cs @@ -122,7 +122,7 @@ public void OnTriggeringTesla(TriggeringTeslaEventArgs ev) public void OnChangingRole(ChangingRoleEventArgs ev) { - if (plugin.Config.GodTuts && ev.Player.RemoteAdminAccess && ev.Reason == SpawnReason.ForceClass) + if (plugin.Config.GodTuts && (ev.Reason is SpawnReason.ForceClass or SpawnReason.None)) ev.Player.IsGodModeEnabled = ev.NewRole == RoleTypeId.Tutorial; }