mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-25 14:17:29 -04:00
Cleanup the help for /draw.
This commit is contained in:
parent
82f2a20b40
commit
3e6b20b955
@ -77,7 +77,7 @@ namespace MCGalaxy.Commands
|
||||
Player.SendMessage(p, "%T/cuboid [brush args] <mode>");
|
||||
Player.SendMessage(p, "%HDraws a cuboid between two points.");
|
||||
Player.SendMessage(p, " %HFor help about brushes, type %T/help brush%H.");
|
||||
Player.SendMessage(p, " %HMode can be: solid/hollow/walls/holes/wire/random");
|
||||
Player.SendMessage(p, " %HModes: &fsolid/hollow/walls/holes/wire/random");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCGalaxy)
|
||||
|
||||
Dual-licensed under the Educational Community License, Version 2.0 and
|
||||
Dual-licensed under the Educational Community License, Version 2.0 and
|
||||
the GNU General Public License, Version 3 (the "Licenses"); you may
|
||||
not use this file except in compliance with the Licenses. You may
|
||||
obtain a copy of the Licenses at
|
||||
@ -24,11 +24,7 @@ namespace MCGalaxy.Commands {
|
||||
|
||||
public sealed class CmdDraw : DrawCmd {
|
||||
public override string name { get { return "draw"; } }
|
||||
public override string shortcut { get { return ""; } }
|
||||
public override string type { get { return CommandTypes.Building; } }
|
||||
public override bool museumUsable { get { return false; } }
|
||||
public override LevelPermission defaultRank { get { return LevelPermission.Builder; } }
|
||||
|
||||
public override string shortcut { get { return ""; } }
|
||||
protected override string PlaceMessage { get { return "Place a block to determine the origin."; } }
|
||||
|
||||
protected override DrawMode ParseMode(string msg) {
|
||||
@ -110,8 +106,14 @@ namespace MCGalaxy.Commands {
|
||||
}
|
||||
|
||||
public override void Help(Player p) {
|
||||
Player.SendMessage(p, "/draw <brush args> <height> <baseradius> <mode>- Draw an object in game- " +
|
||||
"Valid Types cones, spheres, and pyramids, hspheres (hollow sphere), and hpyramids (hollow pyramid)");
|
||||
Player.SendMessage(p, "%T/draw [brush args] <height> <baseradius> <mode>");
|
||||
Player.SendMessage(p, "%T/draw [brush args] <radius> <mode>");
|
||||
Player.SendMessage(p, "%HDraws an object at the specified point.");
|
||||
Player.SendMessage(p, " %HFor help about brushes, type %T/help brush%H.");
|
||||
Player.SendMessage(p, " %HObjects: &fcone/hcone/icone/hicone");
|
||||
Player.SendMessage(p, " &fpyramid/hpyramid/ipyramid/hipyramid/volcano");
|
||||
Player.SendMessage(p, " %HObjects with only radius: &fsphere/hsphere");
|
||||
Player.SendMessage(p, " %HNote 'h' means hollow, 'i' means inverse");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -27,9 +27,11 @@ namespace MCGalaxy.Commands {
|
||||
public override string name { get { return "fill"; } }
|
||||
public override string shortcut { get { return "f"; } }
|
||||
public override LevelPermission defaultRank { get { return LevelPermission.AdvBuilder; } }
|
||||
protected override string PlaceMessage { get { return "Destroy the block you wish to fill."; } }
|
||||
|
||||
protected override DrawMode ParseMode(string msg) {
|
||||
if (msg == "up") return DrawMode.up;
|
||||
if (msg == "normal") return DrawMode.solid;
|
||||
else if (msg == "up") return DrawMode.up;
|
||||
else if (msg == "down") return DrawMode.down;
|
||||
else if (msg == "layer") return DrawMode.layer;
|
||||
else if (msg == "vertical_x") return DrawMode.verticalX;
|
||||
@ -37,10 +39,6 @@ namespace MCGalaxy.Commands {
|
||||
return DrawMode.normal;
|
||||
}
|
||||
|
||||
protected override string PlaceMessage {
|
||||
get { return "Destroy the block you wish to fill."; }
|
||||
}
|
||||
|
||||
protected override void Blockchange1(Player p, ushort x, ushort y, ushort z, byte type, byte extType) {
|
||||
p.ClearBlockchange();
|
||||
CatchPos cpos = (CatchPos)p.blockchangeObject;
|
||||
@ -132,10 +130,10 @@ namespace MCGalaxy.Commands {
|
||||
}
|
||||
|
||||
public override void Help(Player p) {
|
||||
Player.SendMessage(p, "%T/fill [brush args] <mode>");
|
||||
Player.SendMessage(p, "%T/fill [brush args] <mode>");
|
||||
Player.SendMessage(p, "%HFills the area specified with the output of the current brush.");
|
||||
Player.SendMessage(p, " %HFor help about brushes, type %T/help brush%H.");
|
||||
Player.SendMessage(p, " %HMode can be: up/down/layer/vertical_x/vertical_z");
|
||||
Player.SendMessage(p, " %HModes: &fnormal/up/down/layer/vertical_x/vertical_z");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -90,7 +90,7 @@ namespace MCGalaxy.Commands {
|
||||
Player.SendMessage(p, "%T/line [brush args] <mode> <length>");
|
||||
Player.SendMessage(p, "%HCreates a line between two points.");
|
||||
Player.SendMessage(p, " %HFor help about brushes, type %T/help brush%H.");
|
||||
Player.SendMessage(p, " %HMode can be: normal/walls/straight");
|
||||
Player.SendMessage(p, " %HModes: &fnormal/walls/straight");
|
||||
Player.SendMessage(p, " %HLength specifies the max number of blocks in the line.");
|
||||
}
|
||||
}
|
||||
|
@ -68,7 +68,7 @@ namespace MCGalaxy.Commands
|
||||
Player.SendMessage(p, "%T/pyramid [brush args] <mode>");
|
||||
Player.SendMessage(p, "%HDraws a square pyramid, using two points for the base.");
|
||||
Player.SendMessage(p, " %HFor help about brushes, type %T/help brush%H.");
|
||||
Player.SendMessage(p, " %HMode can be: solid/hollow/reverse");
|
||||
Player.SendMessage(p, " %HModes: &fsolid/hollow/reverse");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -63,7 +63,7 @@ namespace MCGalaxy.Commands {
|
||||
Player.SendMessage(p, "%T/spheroid [brush args] <mode>");
|
||||
Player.SendMessage(p, "%HDraws a spheroid between two points.");
|
||||
Player.SendMessage(p, " %HFor help about brushes, type %T/help brush%H.");
|
||||
Player.SendMessage(p, " %HMode can be: solid/hollow/vertical(a vertical tube)");
|
||||
Player.SendMessage(p, " %HModes: &fsolid/hollow/vertical(a vertical tube)");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user