mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 12:05:51 -04:00
Cleanup /help portal
This commit is contained in:
parent
33694517b5
commit
47b2452235
@ -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)");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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:
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user