public override void Use(Player p, string message) { ushort x2 = (ushort)(p.level.Width - 1); ushort y2 = (ushort)(p.level.Height - 1); ushort z2 = (ushort)(p.level.Length - 1); BrushArgs args = new BrushArgs(p, message.ToLower(), 0, 0); Brush brush = ReplaceBrush.Process(args); if (brush == null) { return; } DrawOp drawOp = new CuboidDrawOp(); if (!DrawOp.DoDrawOp(drawOp, brush, p, 0, 0, 0, x2, y2, z2)) { return; } Player.SendMessage(p, "&4/replaceall finished!"); }
void Blockchange2(Player p, ushort x, ushort y, ushort z, byte type, byte extType) { RevertAndClearState(p, x, y, z); CatchPos cpos = (CatchPos)p.blockchangeObject; BrushArgs args = new BrushArgs(p, cpos.message, type, extType); Brush brush = ReplaceNot ? ReplaceNotBrush.Process(args) : ReplaceBrush.Process(args); if (brush == null) { return; } DrawOp drawOp = new CuboidDrawOp(); if (!DrawOp.DoDrawOp(drawOp, brush, p, cpos.x, cpos.y, cpos.z, x, y, z)) { return; } if (p.staticCommands) { p.Blockchange += new Player.BlockchangeEventHandler(Blockchange1); } }