mirror of
https://github.com/quizhizhe/LiteLoaderBDS-1.16.40.git
synced 2025-06-01 19:53:41 +00:00
Add Command::getPlayerFromOrigin
This commit is contained in:
parent
85911a26b6
commit
71bb904d81
@ -70,6 +70,9 @@ public:
|
||||
std::string getCommandName() const{
|
||||
return registry->symbolToString(symbol);
|
||||
};
|
||||
static Player * getPlayerFromOrigin(CommandOrigin const& origin){
|
||||
return (Player*)origin.getEntity();
|
||||
};
|
||||
// Command(){
|
||||
// this->version = 0;
|
||||
// this->registry = 0LL;
|
||||
|
Loading…
Reference in New Issue
Block a user