mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-22 16:28:28 +00:00
[Commands] Cleanup #reloadzps Command. (#2129)
* [Commands] Cleanup #reloadzps Command. - Cleanup messages and logic. - Make reloading of zone points global instead of zone specific. * Further cleanup. - Add zone->GetZoneDescription(). - Add mob->GetTargetDescription(mob). * Final cleanup. * Typo.
This commit is contained in:
@@ -8,7 +8,7 @@ void command_traindisc(Client *c, const Seperator *sep)
|
||||
}
|
||||
|
||||
if (sep->argnum < 1 || !sep->IsNumber(1)) {
|
||||
c->Message(Chat::White, "FORMAT: #traindisc <max level> <min level>");
|
||||
c->Message(Chat::White, "Usage: #traindisc [Max Level] [Min Level]");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -32,12 +32,12 @@ void command_traindisc(Client *c, const Seperator *sep)
|
||||
}
|
||||
|
||||
if (max_level < 1 || min_level < 1) {
|
||||
c->Message(Chat::White, "ERROR: Level must be greater than or equal to 1.");
|
||||
c->Message(Chat::White, "Level must be greater than or equal to 1.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (min_level > max_level) {
|
||||
c->Message(Chat::White, "ERROR: Minimum Level must be less than or equal to Maximum Level.");
|
||||
c->Message(Chat::White, "Minimum Level must be less than or equal to Maximum Level.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ void command_traindisc(Client *c, const Seperator *sep)
|
||||
fmt::format(
|
||||
"{} learned for {}.",
|
||||
discipline_message,
|
||||
target->GetCleanName()
|
||||
c->GetTargetDescription(target)
|
||||
).c_str()
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user