diff --git a/Sources/Plasma/FeatureLib/pfPython/pyPlayerGlue.cpp b/Sources/Plasma/FeatureLib/pfPython/pyPlayerGlue.cpp index b969539a..ec1b0f83 100644 --- a/Sources/Plasma/FeatureLib/pfPython/pyPlayerGlue.cpp +++ b/Sources/Plasma/FeatureLib/pfPython/pyPlayerGlue.cpp @@ -140,6 +140,11 @@ PYTHON_METHOD_DEFINITION_NOARGS(ptPlayer, getPlayerName) return PyString_FromPlString(self->fThis->GetPlayerName()); } +PYTHON_METHOD_DEFINITION_NOARGS(ptPlayer, getPlayerNameW) +{ + return PyUnicode_FromPlString(self->fThis->GetPlayerName()); +} + PYTHON_METHOD_DEFINITION_NOARGS(ptPlayer, getPlayerID) { return PyLong_FromUnsignedLong(self->fThis->GetPlayerID()); @@ -213,4 +218,4 @@ void pyPlayer::AddPlasmaClasses(PyObject *m) PYTHON_CLASS_IMPORT_START(m); PYTHON_CLASS_IMPORT(m, ptPlayer); PYTHON_CLASS_IMPORT_END(m); -} \ No newline at end of file +}