Пример #1
0
 public static void Save(List <rankAllowance> givenList)
 {
     try
     {
         StreamWriter w = new StreamWriter(File.Create("properties/command.properties"));
         w.WriteLine("#Version 2");
         w.WriteLine("#   This file contains a reference to every command found in the server software");
         w.WriteLine("#   Use this file to specify which ranks get which commands");
         w.WriteLine("#   Current 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 it's permission value");
         w.WriteLine("#   CommandName : LowestRank : Disallow : Allow");
         w.WriteLine("#   gun : 60 : 80,67 : 40,41,55");
         w.WriteLine("");
         foreach (rankAllowance aV in givenList)
         {
             w.WriteLine(aV.commandName + " : " + (int)aV.lowestRank + " : " + getInts(aV.disallow) + " : " + getInts(aV.allow));
         }
         w.Flush();
         w.Close();
     }
     catch
     {
         Server.s.Log("SAVE FAILED! command.properties");
     }
 }
Пример #2
0
 public override void Help(Player p)
 {
     Player.SendMessage(p, "/blocks - Lists all basic blocks");
     Player.SendMessage(p, "/blocks all - Lists all complex blocks");
     Player.SendMessage(p, "/blocks [basic block] - Lists all blocks which look the same");
     Player.SendMessage(p, "/blocks [complex block] - Lists specific information on block");
     Player.SendMessage(p, "/blocks <rank> - Lists all blocks <rank> can use");
     Player.SendMessage(p, ">> " + Group.concatList());
     Player.SendMessage(p, "/blocks count <block> - Finds total count for <block> in map");
 }
Пример #3
0
 public override void Help(Player p)
 {
     Player.SendMessage(p, "/blockset [block] [rank] - Changes [block] rank to [rank]");
     Player.SendMessage(p, "Only blocks you can use can be modified");
     Player.SendMessage(p, "Available ranks: " + Group.concatList());
 }
Пример #4
0
 public override void Help(Player p)
 {
     Player.SendMessage(p, "/viewranks [rank] - Shows all users who have [rank]");
     Player.SendMessage(p, "Available ranks: " + Group.concatList());
 }
Пример #5
0
 public override void Help(Player p)
 {
     Player.SendMessage(p, "/limit <type> <amount> - Sets the limit for <type>");
     Player.SendMessage(p, "<types> - " + Group.concatList(true, true) + ", RP, RPNormal");
 }
Пример #6
0
 public override void Help(Player p)
 {
     Player.SendMessage(p, "/cmdset [cmd] [rank] - Changes [cmd] rank to [rank]");
     Player.SendMessage(p, "Only commands you can use can be modified");
     Player.SendMessage(p, "Available ranks: " + Group.concatList());
 }