mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-10-01 17:45:57 -04:00
Make help consistent with level/map, also make /os map delete announce to chat
This commit is contained in:
parent
1fd2f1e965
commit
a6f29ac285
@ -807,7 +807,7 @@ namespace MCGalaxy.Commands.CPE {
|
||||
internal static void Help(Player p, string cmd, string args) {
|
||||
if (args.CaselessEq("2")) {
|
||||
p.Message("%H{0} help page 2:", cmd.Substring(1));
|
||||
p.Message("%T{0} copyall [map] %H- clones all custom blocks from [map]", cmd);
|
||||
p.Message("%T{0} copyall [level] %H- clones all custom blocks from [level]", cmd);
|
||||
p.Message("%T{0} list <offset> %H- lists all custom blocks", cmd);
|
||||
p.Message("%T{0} info [id] %H- shows info about that custom block", cmd);
|
||||
p.Message("%HYou may edit, remove or see info for multiple IDs at once.");
|
||||
|
@ -55,8 +55,8 @@ namespace MCGalaxy.Commands.Fun {
|
||||
public override void Help(Player p) {
|
||||
p.Message("%T/Queue zombie [name]");
|
||||
p.Message("%HNext round [name] will be infected/start zombie");
|
||||
p.Message("%T/Queue level [map]");
|
||||
p.Message("%HNext round [map] will be the level used");
|
||||
p.Message("%T/Queue level [level]");
|
||||
p.Message("%HNext round [level] will be the level used");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -231,10 +231,10 @@ namespace MCGalaxy.Commands.Info {
|
||||
}
|
||||
|
||||
public override void Help(Player p) {
|
||||
p.Message("%T/MapInfo [map]");
|
||||
p.Message("%HDisplay details of [map]");
|
||||
p.Message("%T/MapInfo env [map]");
|
||||
p.Message("%HDisplay environment details of [map]");
|
||||
p.Message("%T/MapInfo [level]");
|
||||
p.Message("%HDisplay details of [level]");
|
||||
p.Message("%T/MapInfo env [level]");
|
||||
p.Message("%HDisplay environment details of [level]");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -64,13 +64,13 @@ namespace MCGalaxy.Commands.Maintenance {
|
||||
}
|
||||
|
||||
public override void Help(Player p) {
|
||||
p.Message("%T/BlockDB clear [map]");
|
||||
p.Message("%HClears the BlockDB (block changes stored in /about) for [map]");
|
||||
p.Message("%T/BlockDB disable [map]");
|
||||
p.Message("%HDisables recording block changes to the BlockDB for [map]");
|
||||
p.Message("%T/BlockDB enable [map]");
|
||||
p.Message("%HEnables %Hrecording block changes to the BlockDB for [map]");
|
||||
p.Message("%HIf no map name is given, uses your current map.");
|
||||
p.Message("%T/BlockDB clear [level]");
|
||||
p.Message("%HClears the BlockDB (block changes stored in /b) for [level]");
|
||||
p.Message("%T/BlockDB disable [level]");
|
||||
p.Message("%HDisables recording block changes to the BlockDB for [level]");
|
||||
p.Message("%T/BlockDB enable [level]");
|
||||
p.Message("%HEnables %Hrecording block changes to the BlockDB for [level]");
|
||||
p.Message("%HIf [level] is not given, uses your current level.");
|
||||
p.Message("%WUse these commands with great caution!");
|
||||
}
|
||||
}
|
||||
|
@ -46,13 +46,13 @@ namespace MCGalaxy.Commands.World {
|
||||
if (!Formatter.ValidMapName(p, dst)) return;
|
||||
|
||||
if (!LevelActions.Copy(p, src, dst)) return;
|
||||
Chat.MessageGlobal("Map {0} %Swas copied to {1}", cfg.Color + src, cfg.Color + dst);
|
||||
Chat.MessageGlobal("Level {0} %Swas copied to {1}", cfg.Color + src, cfg.Color + dst);
|
||||
}
|
||||
|
||||
public override void Help(Player p) {
|
||||
p.Message("%T/CopyLvl [map] [copied map]");
|
||||
p.Message("%HMakes a copy of [map] called [copied map].");
|
||||
p.Message("%HNote: The map's BlockDB is not copied.");
|
||||
p.Message("%T/CopyLvl [level] [copied level]");
|
||||
p.Message("%HMakes a copy of [level] called [copied level].");
|
||||
p.Message("%HNote: The level's BlockDB is not copied.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -38,13 +38,13 @@ namespace MCGalaxy.Commands.World {
|
||||
if (!LevelInfo.Check(p, data.Rank, map, "delete this map",out cfg)) return;
|
||||
|
||||
if (!LevelActions.Delete(p, map)) return;
|
||||
Chat.MessageGlobal("Map {0} %Swas deleted", cfg.Color + map);
|
||||
Chat.MessageGlobal("Level {0} %Swas deleted", cfg.Color + map);
|
||||
}
|
||||
|
||||
public override void Help(Player p) {
|
||||
p.Message("%T/DeleteLvl [map]");
|
||||
p.Message("%HCompletely deletes [map] (portals, MBs, everything)");
|
||||
p.Message("%HA backup of the map is made in the levels/deleted folder");
|
||||
p.Message("%T/DeleteLvl [level]");
|
||||
p.Message("%HCompletely deletes [level] (portals, MBs, everything)");
|
||||
p.Message("%HA backup of the level is made in the levels/deleted folder");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -51,9 +51,9 @@ namespace MCGalaxy.Commands.World {
|
||||
}
|
||||
|
||||
public override void Help(Player p) {
|
||||
p.Message("%T/Lockdown [map]");
|
||||
p.Message("%HPrevents new players from joining that map.");
|
||||
p.Message("%HUsing /lockdown again will unlock that map");
|
||||
p.Message("%T/Lockdown [level]");
|
||||
p.Message("%HPrevents new players from joining that level.");
|
||||
p.Message("%HUsing /lockdown again will unlock that level");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -54,8 +54,8 @@ namespace MCGalaxy.Commands.World {
|
||||
public override void Help(Player p) {
|
||||
p.Message("%T/Main");
|
||||
p.Message("%HSends you to the main level.");
|
||||
p.Message("%T/Main [map]");
|
||||
p.Message("%HSets the main level to that map.");
|
||||
p.Message("%T/Main [level]");
|
||||
p.Message("%HSets the main level to that level.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -118,7 +118,7 @@ namespace MCGalaxy.Commands.World {
|
||||
static string GetBool(bool value) { return value ? "&aON" : "&cOFF"; }
|
||||
|
||||
public override void Help(Player p) {
|
||||
p.Message("%T/Map [map] [option] <value> %H- Sets [option] on that map");
|
||||
p.Message("%T/Map [level] [option] <value> %H- Sets [option] on that level");
|
||||
p.Message("%HUse %T/Help map options %Hfor a list of options");
|
||||
p.Message("%HUse %T/Help map [option] %Hto see description for that option");
|
||||
}
|
||||
|
@ -71,8 +71,8 @@ namespace MCGalaxy.Commands.World {
|
||||
}
|
||||
|
||||
public override void Help(Player p) {
|
||||
p.Message("%T/Museum [map] [backup]");
|
||||
p.Message("%HTeleports you to a backup of the given map.");
|
||||
p.Message("%T/Museum [level] [backup]");
|
||||
p.Message("%HTeleports you to a backup of the given level.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -187,11 +187,7 @@ namespace MCGalaxy.Commands.World {
|
||||
p.Message("To delete your current map, type %T/os map delete");
|
||||
return;
|
||||
}
|
||||
|
||||
string map = p.level.name;
|
||||
if (LevelActions.Delete(p, map)) {
|
||||
p.Message("Map " + map + " was removed.");
|
||||
}
|
||||
UseCommand(p, "DeleteLvl", p.level.name);
|
||||
}
|
||||
|
||||
|
||||
|
@ -67,9 +67,9 @@ namespace MCGalaxy.Commands.World {
|
||||
}
|
||||
|
||||
public override void Help(Player p) {
|
||||
p.Message("%T/Pause [map] [seconds]");
|
||||
p.Message("%HPauses physics on the given map for the specified number of seconds.");
|
||||
p.Message("%H If [map] is not given, pauses physics on the current map.");
|
||||
p.Message("%T/Pause [level] [seconds]");
|
||||
p.Message("%HPauses physics on the given level for the given number of seconds.");
|
||||
p.Message("%H If [level] is not given, pauses physics on the current level.");
|
||||
p.Message("%H If [seconds] is not given, pauses physics for 30 seconds.");
|
||||
}
|
||||
}
|
||||
|
@ -78,9 +78,9 @@ namespace MCGalaxy.Commands.World {
|
||||
}
|
||||
|
||||
public override void Help(Player p) {
|
||||
p.Message("%T/Physics [map] [0/1/2/3/4/5]");
|
||||
p.Message("%HSets the physics state for the given map.");
|
||||
p.Message("%H If no map name is given, uses the current map.");
|
||||
p.Message("%T/Physics [level] [0/1/2/3/4/5]");
|
||||
p.Message("%HSets the physics state for the given level.");
|
||||
p.Message("%H If [level] is not given, uses the current level.");
|
||||
p.Message("%H 0 = off, 1 = on, 2 = advanced, 3 = hardcore, 4 = instant, 5 = doors only");
|
||||
p.Message("%T/Physics kill %H- Sets physics to 0 on all loaded levels.");
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ namespace MCGalaxy.Commands.World {
|
||||
public override void Help(Player p) {
|
||||
p.Message("%T/Reload %H- Reloads the map you are in, just for you.");
|
||||
p.Message("%T/Reload all %H- Reloads for all players in map you are in.");
|
||||
p.Message("%T/Reload all [map] %H- Reloads for all players in [map]");
|
||||
p.Message("%T/Reload all [level] %H- Reloads for all players in [level]");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -41,12 +41,12 @@ namespace MCGalaxy.Commands.World {
|
||||
if (!Formatter.ValidMapName(p, dst)) return;
|
||||
|
||||
if (!LevelActions.Rename(p, src, dst)) return;
|
||||
Chat.MessageGlobal("Map {0} %Swas renamed to {1}", cfg.Color + src, cfg.Color + dst);
|
||||
Chat.MessageGlobal("Level {0} %Swas renamed to {1}", cfg.Color + src, cfg.Color + dst);
|
||||
}
|
||||
|
||||
public override void Help(Player p) {
|
||||
p.Message("%T/RenameLvl [map] [new name]");
|
||||
p.Message("%HRenames [map] to [new name]");
|
||||
p.Message("%T/RenameLvl [level] [new name]");
|
||||
p.Message("%HRenames [level] to [new name]");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -95,10 +95,10 @@ namespace MCGalaxy.Commands.World {
|
||||
}
|
||||
|
||||
public override void Help(Player p) {
|
||||
p.Message("%T/Restore %H- lists all backups for the current map");
|
||||
p.Message("%T/Restore [number] <map>");
|
||||
p.Message("%HRestores a previous backup for the given map.");
|
||||
p.Message("%H If <map> is not given, your current map is used.");
|
||||
p.Message("%T/Restore %H- lists all backups for the current level");
|
||||
p.Message("%T/Restore [number] <level>");
|
||||
p.Message("%HRestores a previous backup for the given level.");
|
||||
p.Message("%H If <level> is not given, the current level is used.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -88,8 +88,8 @@ namespace MCGalaxy.Commands.World {
|
||||
public override void Help(Player p) {
|
||||
p.Message("%T/Save %H- Saves the level you are currently in");
|
||||
p.Message("%T/Save all %H- Saves all loaded levels.");
|
||||
p.Message("%T/Save [map] %H- Saves the specified map.");
|
||||
p.Message("%T/Save [map] [name] %H- Backups the map with a given restore name");
|
||||
p.Message("%T/Save [level] %H- Saves the specified level.");
|
||||
p.Message("%T/Save [level] [name] %H- Backups the level with a given restore name");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -96,13 +96,13 @@ namespace MCGalaxy.Commands.World {
|
||||
}
|
||||
|
||||
protected void ShowHelp(Player p, string action, string action2) {
|
||||
p.Message("%T/{0} [map] [rank]", name);
|
||||
p.Message("%HSets the lowest rank able to {0} the given map.", action);
|
||||
p.Message("%T/{0} -max [map] [Rank]", name);
|
||||
p.Message("%HSets the highest rank able to {0} the given map.", action);
|
||||
p.Message("%T/{0} [map] +[name]", name);
|
||||
p.Message("%T/{0} [level] [rank]", name);
|
||||
p.Message("%HSets the lowest rank able to {0} the given level.", action);
|
||||
p.Message("%T/{0} -max [level] [Rank]", name);
|
||||
p.Message("%HSets the highest rank able to {0} the given level.", action);
|
||||
p.Message("%T/{0} [level] +[name]", name);
|
||||
p.Message("%HAllows [name] to {0}, even if their rank cannot.", action2);
|
||||
p.Message("%T/{0} [map] -[name]", name);
|
||||
p.Message("%T/{0} [level] -[name]", name);
|
||||
p.Message("%HPrevents [name] from {0}ing, even if their rank can.", action2);
|
||||
}
|
||||
}
|
||||
|
@ -76,7 +76,7 @@ namespace MCGalaxy.Eco {
|
||||
}
|
||||
|
||||
protected internal override void OnStoreCommand(Player p) {
|
||||
p.Message("%T/Buy {0} [map]", Name);
|
||||
p.Message("%T/Buy {0} [level]", Name);
|
||||
OutputItemInfo(p);
|
||||
p.Message("The map used for the next round of " +
|
||||
"zombie survival will be the given map.");
|
||||
|
Loading…
x
Reference in New Issue
Block a user