mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-16 02:37:41 -04:00
Fix /zs set pillaring and /zs set build
This commit is contained in:
parent
02ee238bcc
commit
ce9effd35b
@ -55,12 +55,12 @@ namespace MCGalaxy.Commands.Fun {
|
|||||||
|
|
||||||
cfg.Save(); return;
|
cfg.Save(); return;
|
||||||
} else if (prop.CaselessEq("pillaring")) {
|
} else if (prop.CaselessEq("pillaring")) {
|
||||||
if (!CommandParser.GetBool(p, args[1], ref lCfg.Pillaring)) return;
|
if (!CommandParser.GetBool(p, args[2], ref lCfg.Pillaring)) return;
|
||||||
|
|
||||||
p.Message("Set pillaring allowed to &b" + lCfg.Pillaring);
|
p.Message("Set pillaring allowed to &b" + lCfg.Pillaring);
|
||||||
game.UpdateAllStatus2();
|
game.UpdateAllStatus2();
|
||||||
} else if (prop.CaselessEq("build")) {
|
} else if (prop.CaselessEq("build")) {
|
||||||
if (!CommandParser.GetEnum(p, args[1], "Build type", ref lCfg.BuildType)) return;
|
if (!CommandParser.GetEnum(p, args[2], "Build type", ref lCfg.BuildType)) return;
|
||||||
p.level.UpdateBlockPermissions();
|
p.level.UpdateBlockPermissions();
|
||||||
|
|
||||||
p.Message("Set build type to &b" + lCfg.BuildType);
|
p.Message("Set build type to &b" + lCfg.BuildType);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user