From 88a98e30a16cad2d4963b13b553e9e9598c2e4d5 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Fri, 29 May 2020 12:38:18 +1000 Subject: [PATCH] Add /limit realms (Thanks CounterTerrorist) --- MCGalaxy/Commands/Maintenance/CmdLimit.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/MCGalaxy/Commands/Maintenance/CmdLimit.cs b/MCGalaxy/Commands/Maintenance/CmdLimit.cs index 24b9df4e9..def53f86c 100644 --- a/MCGalaxy/Commands/Maintenance/CmdLimit.cs +++ b/MCGalaxy/Commands/Maintenance/CmdLimit.cs @@ -71,6 +71,9 @@ namespace MCGalaxy.Commands.Maintenance { case "genlimit": Chat.MessageAll(grp.ColoredName + "%S's map gen volume limit set to &b" + limit); grp.GenVolume = limit; break; + case "realms": + Chat.MessageAll(grp.ColoredName + "%S's max realms set to &b" + limit); + grp.OverseerMaps = limit; break; default: Help(p); return; } @@ -103,9 +106,9 @@ 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(rt), restartphysics(rp), " + - "rpnormal, physicsundo(pu), drawlimit(dl), maxundo(mu), genlimit(gen)"); - p.Message("%H is required for drawlimit, maxundo, gen types."); + 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."); } } }