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"); } }
public override void Help(Player p) { Player.SendMessage(p, "/setrank <player> <rank> [reason] - Sets or returns a players rank."); Player.SendMessage(p, "You may use /rank as a shortcut"); Player.SendMessage(p, "Valid Ranks are: " + Group.concatList(true, true)); Player.SendMessage(p, "Reason is optional."); }
public override void Help(Player p) { Player.SendMessage(p, "/temprank <player> <rank> <yay> - Temporarily ranks a player <rank>."); Player.SendMessage(p, "You may use /trank as a shortcut"); Player.SendMessage(p, "Valid Ranks are: " + Group.concatList(true, true)); Player.SendMessage(p, "<yay> is a celebratory message"); Player.SendMessage(p, "Tempranks last until the tempranked player logs out. When they log out, their rank is reset to their old rank."); }
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"); }
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"); }
public override void Help(Player p) { Player.SendMessage(p, "/viewranks [rank] - Shows all users who have [rank]"); Player.SendMessage(p, "Available ranks: " + Group.concatList()); }
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()); }
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()); }
public override void Help(Player p) { Player.SendMessage(p, "/fakerank <player> <rank> <yay> - Sets or returns a players rank."); Player.SendMessage(p, "Valid Ranks are: " + Group.concatList(true, true)); Player.SendMessage(p, "<yay> is a celebratory message"); }