From 43dc6c0c54d82de061eb9a68f12e01d503f6f193 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Fri, 29 May 2020 12:48:25 +1000 Subject: [PATCH] Improve help for /limit --- MCGalaxy/Commands/Maintenance/CmdLimit.cs | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/MCGalaxy/Commands/Maintenance/CmdLimit.cs b/MCGalaxy/Commands/Maintenance/CmdLimit.cs index def53f86c..bdb085f58 100644 --- a/MCGalaxy/Commands/Maintenance/CmdLimit.cs +++ b/MCGalaxy/Commands/Maintenance/CmdLimit.cs @@ -59,16 +59,13 @@ namespace MCGalaxy.Commands.Maintenance { if (grp == null) return; switch (args[0].ToLower()) { - case "dl": - case "drawlimit": + case "draw": Chat.MessageAll(grp.ColoredName + "%S's draw limit set to &b" + limit); grp.DrawLimit = limit; break; - case "mu": case "maxundo": Chat.MessageAll(grp.ColoredName + "%S's undo limit set to &b" + limit); grp.MaxUndo = TimeSpan.FromSeconds(limit); break; case "gen": - case "genlimit": Chat.MessageAll(grp.ColoredName + "%S's map gen volume limit set to &b" + limit); grp.GenVolume = limit; break; case "realms": @@ -104,11 +101,12 @@ namespace MCGalaxy.Commands.Maintenance { } public override void Help(Player p) { - p.Message("%T/Limit [type] [amount] "); - p.Message("%HSets the limit for [type]"); - p.Message("%HValid types: %Sreloadthreshold, restartphysics(rp), " + - "rpnormal, physicsundo(pu), drawlimit(dl), maxundo(mu), genlimit(gen), realms"); - p.Message("%H is required for drawlimit, maxundo, gen, realms types."); + p.Message("%T/Limit [type] [amount]"); + p.Message("%HSets the general limit for [type]"); + p.Message(" %HValid types: &freloadthreshold, restartphysics(rp), rpnormal, physicsundo(pu)"); + p.Message("%T/Limit [type] [amount] [rank]"); + p.Message("%HSets the limit for [type] for the given rank"); + p.Message(" %HValid types: &fdraw, maxundo, gen, realms"); } } }