mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 12:05:51 -04:00
Rename LB lavabrightness and lampbrightness to lavalight and lamplight
Also display lavalight and lamplight colors in /mi env if set
This commit is contained in:
parent
c6d0e03d81
commit
2f8aa7cd30
@ -274,7 +274,7 @@ namespace MCGalaxy.Commands.CPE
|
||||
p.Message(" Order: " + def.InventoryOrder);
|
||||
}
|
||||
if (def.Brightness > 0) {
|
||||
string word = def.UseLampBrightness ? "LampBrightness" : "LavaBrightness";
|
||||
string word = def.UseLampBrightness ? "LampLight" : "LavaLight";
|
||||
p.Message(" {0}: {1}", word, def.Brightness);
|
||||
}
|
||||
}
|
||||
@ -556,17 +556,17 @@ namespace MCGalaxy.Commands.CPE
|
||||
order == def.RawID ? "default" : order.ToString());
|
||||
return true;
|
||||
|
||||
case "lavabrightness":
|
||||
case "lavalight":
|
||||
int brightness = 0;
|
||||
if (!CommandParser.GetInt(p, value, "lavabrightness", ref brightness, 0, 15)) {
|
||||
if (!CommandParser.GetInt(p, value, "lava light", ref brightness, 0, 15)) {
|
||||
SendEditHelp(p, arg); return false;
|
||||
}
|
||||
def.SetBrightness(brightness, false);
|
||||
break;
|
||||
|
||||
case "lampbrightness":
|
||||
case "lamplight":
|
||||
int sunBrightness = 0;
|
||||
if (!CommandParser.GetInt(p, value, "lampbrightness", ref sunBrightness, 0, 15)) {
|
||||
if (!CommandParser.GetInt(p, value, "lamp light", ref sunBrightness, 0, 15)) {
|
||||
SendEditHelp(p, arg); return false;
|
||||
}
|
||||
def.SetBrightness(sunBrightness, true);
|
||||
@ -883,11 +883,11 @@ namespace MCGalaxy.Commands.CPE
|
||||
"The default position of a block is its ID.",
|
||||
"A position of 0 hides the block from the inventory." }
|
||||
},
|
||||
{ "lavabrightness", new string[] { "Type a number (0-15) for the lava brightness of the block.",
|
||||
{ "lavalight", new string[] { "Type a number (0-15) for the lava brightness of the block.",
|
||||
"You need Fancy Lighting to see differences between 1 and 15.",
|
||||
"The block will glow using the \"lavalight\" env color" }
|
||||
},
|
||||
{ "lampbrightness", new string[] { "Type a number (0-15) for the lamp brightness of the block.",
|
||||
{ "lamplight", new string[] { "Type a number (0-15) for the lamp brightness of the block.",
|
||||
"You need Fancy Lighting to see differences between 1 and 15.",
|
||||
"The block will glow using the \"lamplight\" env color" }
|
||||
},
|
||||
|
@ -154,7 +154,11 @@ namespace MCGalaxy.Commands.Info
|
||||
|
||||
p.Message("Colors: &eFog {0}, &eSky {1}, &eClouds {2}, &eSunlight {3}, &eShadowlight {4}",
|
||||
Color(cfg.FogColor), Color(cfg.SkyColor),
|
||||
Color(cfg.CloudColor), Color(cfg.LightColor), Color(cfg.ShadowColor));
|
||||
Color(cfg.CloudColor), Color(cfg.LightColor), Color(cfg.ShadowColor));
|
||||
if (cfg.LavaLightColor != "" || cfg.LampLightColor != "") {
|
||||
p.Message("Fancy colors: &eLavaLight {0}, &eLampLight {1}",
|
||||
Color(cfg.LavaLightColor), Color(cfg.LampLightColor));
|
||||
}
|
||||
p.Message("Water level: &b{0}&S, Bedrock offset: &b{1}&S, Clouds height: &b{2}&S, Max fog distance: &b{3}",
|
||||
data.Get(EnvProp.EdgeLevel), data.Get(EnvProp.SidesOffset),
|
||||
data.Get(EnvProp.CloudsLevel), data.Get(EnvProp.MaxFog));
|
||||
|
Loading…
x
Reference in New Issue
Block a user