Improve help for /limit

This commit is contained in:
UnknownShadow200 2020-05-29 12:48:25 +10:00
parent 88a98e30a1
commit 43dc6c0c54

View File

@ -59,16 +59,13 @@ namespace MCGalaxy.Commands.Maintenance {
if (grp == null) return; if (grp == null) return;
switch (args[0].ToLower()) { switch (args[0].ToLower()) {
case "dl": case "draw":
case "drawlimit":
Chat.MessageAll(grp.ColoredName + "%S's draw limit set to &b" + limit); Chat.MessageAll(grp.ColoredName + "%S's draw limit set to &b" + limit);
grp.DrawLimit = limit; break; grp.DrawLimit = limit; break;
case "mu":
case "maxundo": case "maxundo":
Chat.MessageAll(grp.ColoredName + "%S's undo limit set to &b" + limit); Chat.MessageAll(grp.ColoredName + "%S's undo limit set to &b" + limit);
grp.MaxUndo = TimeSpan.FromSeconds(limit); break; grp.MaxUndo = TimeSpan.FromSeconds(limit); break;
case "gen": case "gen":
case "genlimit":
Chat.MessageAll(grp.ColoredName + "%S's map gen volume limit set to &b" + limit); Chat.MessageAll(grp.ColoredName + "%S's map gen volume limit set to &b" + limit);
grp.GenVolume = limit; break; grp.GenVolume = limit; break;
case "realms": case "realms":
@ -104,11 +101,12 @@ namespace MCGalaxy.Commands.Maintenance {
} }
public override void Help(Player p) { public override void Help(Player p) {
p.Message("%T/Limit [type] [amount] <rank>"); p.Message("%T/Limit [type] [amount]");
p.Message("%HSets the limit for [type]"); p.Message("%HSets the general limit for [type]");
p.Message("%HValid types: %Sreloadthreshold, restartphysics(rp), " + p.Message(" %HValid types: &freloadthreshold, restartphysics(rp), rpnormal, physicsundo(pu)");
"rpnormal, physicsundo(pu), drawlimit(dl), maxundo(mu), genlimit(gen), realms"); p.Message("%T/Limit [type] [amount] [rank]");
p.Message("%H<rank> is required for drawlimit, maxundo, gen, realms types."); p.Message("%HSets the limit for [type] for the given rank");
p.Message(" %HValid types: &fdraw, maxundo, gen, realms");
} }
} }
} }