/// <summary> /// Fill the commands that this group can use /// </summary> public void fillCommands() { CommandList _commands = new CommandList(); GrpCommands.AddCommands(out _commands, Permission); commands = _commands; }
static void SaveBlocksCore(IEnumerable <Blocks> givenList) { using (StreamWriter w = new StreamWriter("properties/block.properties")) { w.WriteLine("#Version 2"); w.WriteLine("# This file dictates which ranks may use what blocks"); w.WriteLine("# If someone has royally screwed up the ranks, just delete this file and let the server restart"); w.WriteLine("# Allowed ranks: " + Group.concatList(false, false, true)); w.WriteLine("# Disallow and allow can be left empty, just make sure there's 2 spaces between the colons"); w.WriteLine("# This works entirely on permission values, not names. Do not enter a rank name. Use its permission value"); w.WriteLine("# BlockName : LowestRank : Disallow : Allow"); w.WriteLine("# lava : 60 : 80,67 : 40,41,55"); w.WriteLine(""); foreach (Blocks bs in givenList) { if (!bs.IncludeInBlockProperties()) { continue; } string line = Block.Name(bs.type) + " : " + (int)bs.lowestRank + " : " + GrpCommands.getInts(bs.disallow) + " : " + GrpCommands.getInts(bs.allow); w.WriteLine(line); } } }
public static void LoadAllSettings() { Colors.LoadExtColors(); Alias.Load(); BlockDefinition.LoadGlobal(); SrvProperties.Load("properties/server.properties"); Updater.Load("properties/update.properties"); Group.InitAll(); Command.InitAll(); GrpCommands.fillRanks(); Block.SetBlocks(); Awards.Load(); Economy.Load(); Warp.LOAD(); CommandOtherPerms.Load(); ProfanityFilter.Init(); Team.LoadList(); }
public static void LoadAllSettings() { zombie.LoadInfectMessages(); Colors.LoadExtColors(); Alias.Load(); Bots.BotsFile.Load(); BlockDefinition.LoadGlobal(); SrvProperties.Load("properties/server.properties"); Updater.Load("properties/update.properties"); Group.InitAll(); Command.InitAll(); GrpCommands.fillRanks(); Block.SetBlocks(); Awards.Load(); Economy.Load(); WarpList.Global.Load(null); CommandOtherPerms.Load(); ProfanityFilter.Init(); Team.LoadList(); ChatTokens.LoadCustom(); FixupOldPerms(); }