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