Help with error [PMMP]

2023-01-07 [00:10:22] [Server thread/CRITICAL]: Could not execute task pocketmine\scheduler\CallbackTask: Argument 1 passed to _64FF00\PurePerms\data\UserDataManager::setGroup() must implement interface pocketmine\IPlayer, string given, called in /storage/emulated/0/Server/MCPE/plugins/API/src/api/Loader.php on line 2479

code:

$this->pp->getUserDataMgr()->setGroup($nick, $groups[$donate], $levelName);

The error tells you what is wrong -

$nick is a string, and it expects a Player object.

2 Likes

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.