Mania++
 All Classes Functions Variables Pages
ChatCommand.h
1 #ifndef CHATCOMMAND_H_
2 #define CHATCOMMAND_H_
3 
4 #include "../Objects/Player.h"
5 #include "../Permissions/Permission.h"
6 
7 //* ChatCommand
12 {
13  std::string PluginName;
14  std::string PluginVersion;
15  std::string PluginAuthor;
17  std::string Command;
18  std::string Description;
19  Permission Access = User;
20  std::function<void(Player, std::vector<std::string>)> Method;
21 };
22 
23 #endif // CHATCOMMAND_H_
std::string PluginVersion
Version of the plugin the command belongs to.
Definition: ChatCommand.h:14
std::string Description
Chat command description.
Definition: ChatCommand.h:18
std::function< void(Player, std::vector< std::string >)> Method
Chat command method.
Definition: ChatCommand.h:20
Permission Access
Command access level.
Definition: ChatCommand.h:19
Stuct containing information about a chat command.
Definition: ChatCommand.h:11
std::string PluginName
Name of the plugin the command belongs to.
Definition: ChatCommand.h:13
std::string Command
Chat command.
Definition: ChatCommand.h:17
std::string PluginAuthor
Author of the plugin the command belongs to.
Definition: ChatCommand.h:15