mirror of
https://github.com/quizhizhe/LiteLoaderBDS-1.16.40.git
synced 2025-06-06 04:03:39 +00:00
7 lines
211 B
C++
7 lines
211 B
C++
#include <MC/CommandOrigin.hpp>
|
|
#include <MC/Actor.hpp>
|
|
|
|
ServerPlayer* CommandOrigin::getPlayer() const {
|
|
Actor* origin = getEntity();
|
|
return origin->isPlayer() ? (ServerPlayer*)origin : nullptr;
|
|
} |