[Commands] Cleanup #opcode Command. (#2547)

* [Commands] Cleanup #opcode Command.

- Cleanup logic.

* Update command.cpp
This commit is contained in:
Kinglykrab 2022-11-16 09:30:35 -05:00 committed by GitHub
parent 730cd3f28a
commit 93d8471487
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View File

@ -239,7 +239,7 @@ int command_init(void)
command_add("nukeitem", "[Item ID] - Removes the specified Item ID from you or your player target's inventory", AccountStatus::GMLeadAdmin, command_nukeitem) ||
command_add("object", "List|Add|Edit|Move|Rotate|Copy|Save|Undo|Delete - Manipulate static and tradeskill objects within the zone", AccountStatus::GMAdmin, command_object) ||
command_add("oocmute", "[0|1] - Enable or Disable Server OOC", AccountStatus::GMMgmt, command_oocmute) ||
command_add("opcode", "opcode management", AccountStatus::GMImpossible, command_opcode) ||
command_add("opcode", "Reloads all server patches", AccountStatus::GMImpossible, command_opcode) ||
command_add("path", "view and edit pathing", AccountStatus::GMMgmt, command_path) ||
command_add("peekinv", "[equip/gen/cursor/poss/limbo/curlim/trib/bank/shbank/allbank/trade/world/all] - Print out contents of your player target's inventory", AccountStatus::GMAdmin, command_peekinv) ||
command_add("peqzone", "[Zone ID|Zone Short Name] - Teleports you to the specified zone if you meet the requirements.", AccountStatus::Player, command_peqzone) ||

View File

@ -3,9 +3,7 @@
void command_opcode(Client *c, const Seperator *sep)
{
if (!strcasecmp(sep->arg[1], "reload")) {
ReloadAllPatches();
c->Message(Chat::White, "Opcodes for all patches have been reloaded");
}
ReloadAllPatches();
c->Message(Chat::White, "Opcodes for all patches have been reloaded");
}