refactor(Core/Command): tele to teleport (#2956)
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1588099547971545300');
|
||||||
|
|
||||||
|
UPDATE `command` SET `name` = "lookup teleport", `help` = "Syntax: .lookup teleport $substring\r\nSearch and output all .teleport command locations with provide $substring in name." WHERE `name` = "lookup tele";
|
||||||
|
UPDATE `command` SET `name` = "teleport", `help` = "Syntax: .teleport #location\r\nTeleport player to a given location." WHERE `name` = "tele";
|
||||||
|
UPDATE `command` SET `name` = "teleport add", `help` = "Syntax: .teleport add $name\r\nAdd current your position to .teleport command target locations list with name $name." WHERE `name` = "tele add";
|
||||||
|
UPDATE `command` SET `name` = "teleport del", `help` = "Syntax: .teleport del $name\r\nRemove location with name $name for .teleport command locations list." WHERE `name` = "tele del";
|
||||||
|
UPDATE `command` SET `name` = "teleport group", `help` = "Syntax: .teleport group#location\r\nTeleport a selected player and his group members to a given location." WHERE `name` = "tele group";
|
||||||
|
UPDATE `command` SET `name` = "teleport name", `help` = "Syntax: .teleport name [#playername] #location\r\nTeleport the given character to a given location. Character can be offline.\r\nTo teleport to homebind, set #location to \"$home\" (without quotes)." WHERE `name` = "tele name";
|
||||||
@@ -54,7 +54,7 @@ public:
|
|||||||
{ "quest", SEC_MODERATOR, true, &HandleLookupQuestCommand, "" },
|
{ "quest", SEC_MODERATOR, true, &HandleLookupQuestCommand, "" },
|
||||||
{ "skill", SEC_MODERATOR, true, &HandleLookupSkillCommand, "" },
|
{ "skill", SEC_MODERATOR, true, &HandleLookupSkillCommand, "" },
|
||||||
{ "taxinode", SEC_MODERATOR, true, &HandleLookupTaxiNodeCommand, "" },
|
{ "taxinode", SEC_MODERATOR, true, &HandleLookupTaxiNodeCommand, "" },
|
||||||
{ "tele", SEC_MODERATOR, true, &HandleLookupTeleCommand, "" },
|
{ "teleport", SEC_MODERATOR, true, &HandleLookupTeleCommand, "" },
|
||||||
{ "title", SEC_MODERATOR, true, &HandleLookupTitleCommand, "" },
|
{ "title", SEC_MODERATOR, true, &HandleLookupTitleCommand, "" },
|
||||||
{ "map", SEC_MODERATOR, true, &HandleLookupMapCommand, "" },
|
{ "map", SEC_MODERATOR, true, &HandleLookupMapCommand, "" },
|
||||||
{ "player", SEC_GAMEMASTER, true, nullptr, "", lookupPlayerCommandTable },
|
{ "player", SEC_GAMEMASTER, true, nullptr, "", lookupPlayerCommandTable },
|
||||||
@@ -1045,7 +1045,7 @@ public:
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Find tele in game_tele order by name
|
// Find teleport in game_tele order by name
|
||||||
static bool HandleLookupTeleCommand(ChatHandler* handler, char const* args)
|
static bool HandleLookupTeleCommand(ChatHandler* handler, char const* args)
|
||||||
{
|
{
|
||||||
if (!*args)
|
if (!*args)
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ public:
|
|||||||
};
|
};
|
||||||
static std::vector<ChatCommand> commandTable =
|
static std::vector<ChatCommand> commandTable =
|
||||||
{
|
{
|
||||||
{ "tele", SEC_MODERATOR, false, nullptr, "", teleCommandTable }
|
{ "teleport", SEC_MODERATOR, false, nullptr, "", teleCommandTable }
|
||||||
};
|
};
|
||||||
return commandTable;
|
return commandTable;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user