MCPcopy Create free account
hub / github.com/EndstoneMC/endstone / getCommand

Method getCommand

include/endstone/plugin/plugin.h:122–126  ·  view source on GitHub ↗

* @brief Gets the command with the given name, specific to this plugin. * * @param name name or alias of the command * @return the plugin command if found, otherwise null */

Source from the content-addressed store, hash-verified

120 * @return the plugin command if found, otherwise null
121 */
122 [[nodiscard]] PluginCommand *getCommand(std::string name) const
123 {
124 std::transform(name.begin(), name.end(), name.begin(), [](unsigned char c) { return std::tolower(c); });
125 return getServer().getPluginCommand(name);
126 }
127
128 /**
129 * @brief Returns the folder that the plugin data's files are located in.

Callers

nothing calls this directly

Calls 3

getPluginCommandMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected