Cleanup /help portal

This commit is contained in:
UnknownShadow200 2016-08-30 11:51:10 +10:00
parent 33694517b5
commit 47b2452235
2 changed files with 11 additions and 10 deletions

View File

@ -35,12 +35,10 @@ namespace MCGalaxy.Commands.Building {
string[] args = message.Split(' '); string[] args = message.Split(' ');
string block = message == "" ? "" : args[0].ToLower(); string block = message == "" ? "" : args[0].ToLower();
if (args.Length >= 2) { if (args.Length >= 2 && args[1].CaselessEq("multi")) {
if (args[1].CaselessEq("multi")) {
data.Multi = true; data.Multi = true;
} else { } else if (args.Length >= 2) {
Player.Message(p, "Invalid parameters"); return; Help(p); return;
}
} }
if (block == "blue" || block == "") { data.type = Block.blue_portal; } if (block == "blue" || block == "") { data.type = Block.blue_portal; }
@ -149,9 +147,12 @@ namespace MCGalaxy.Commands.Building {
static ushort U16(object x) { return Convert.ToUInt16(x); } static ushort U16(object x) { return Convert.ToUInt16(x); }
public override void Help(Player p) { public override void Help(Player p) {
Player.Message(p, "/portal [orange/blue/air/water/lava] [multi] - Activates Portal mode."); Player.Message(p, "%T/portal [block]");
Player.Message(p, "/portal [type] multi - Place Entry blocks until exit is wanted."); Player.Message(p, "%HPlace a block for the entry, then another block for exit.");
Player.Message(p, "/portal show - Shows portals, green = in, red = out."); Player.Message(p, "%T/portal [block] multi");
Player.Message(p, "%HPlace multiple blocks for entries, then a red block for exit.");
Player.Message(p, "%H Supported blocks: %Sblue, orange, water, lava, air");
Player.Message(p, "%T/portal show %H- Shows portals (green = entry, red = exit)");
} }
} }
} }

View File

@ -37,7 +37,7 @@ using System.Runtime.InteropServices;
// The following GUID is for the ID of the typelib if this project is exposed to COM // The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("24d9085c-78ba-4f53-b69c-f2b52153683f")] [assembly: Guid("24d9085c-78ba-4f53-b69c-f2b52153683f")]
[assembly: AssemblyVersion("1.8.7.5")] [assembly: AssemblyVersion("1.8.8.0")]
// Version information for an assembly consists of the following four values: // Version information for an assembly consists of the following four values:
// //