So in the invasion UI you have this:
C#:
        protected override void CompileMenuOptions(MenuGumpOptions list)
        {
            base.CompileMenuOptions(list);

            list.AppendEntry(new ListGumpEntry("Create Invasion", OnCreateInvasion, HighlightHue));
        }
Unfortunately this is giving players access to modify invasions, I changed it to this:
C#:
        protected override void CompileMenuOptions(MenuGumpOptions list)
        {
            base.CompileMenuOptions(list);
            
            if (User.AccessLevel >= InvasionService.Access)
            {
            list.AppendEntry(new ListGumpEntry("Create Invasion", OnCreateInvasion, HighlightHue));
            }
        }
 
Back