Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rankup and PurePerms not working together #22

Closed
coolcrummypack opened this issue Jun 6, 2016 · 2 comments
Closed

Rankup and PurePerms not working together #22

coolcrummypack opened this issue Jun 6, 2016 · 2 comments

Comments

@coolcrummypack
Copy link

So, I'm bulding my new MCPE prison server, and I would like to use rankup, and pureperms because pureperms has prefixes and such.
but whenever I test to make sure I can rankup, my whole server crashes and it creates a dump file,
Here it is--->
Error: Call to undefined method _64FF00\PurePerms\PurePerms::getUser()
File: /RankUp_v0.3.1.phar/src/rankup/permission/PurePerms
Line: 15
Type: E_ERROR

THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN: RankUp v0.3.1

Code:
[6] class PurePerms extends BasePermissionManager{
[7] public function addToGroup(Player $player, $group){
[8] if(!$this->checkReady()) return false;
[9] $ppGroup = $this->getAPI()->getGroup($group);
[10] $this->getAPI()->getUser($player)->setGroup($ppGroup, null);
[11] return true;
[12] }
[13] public function getGroup(Player $player){
[14] if(!$this->checkReady()) return false;
[15] $user = $this->getAPI()->getUser($player);
[16] return $user->getGroup()->getName();
[17] }
[18]
[19] /**
[20] * getUsers() is not implemented in PurePerms. This method will NOT work.
[21] * @param $name
[22] * @return bool|void
[23] */
[24] public function getPlayersInGroup($name){
[25] if(!$this->checkReady()) return false;

Backtrace:
#0 /src/pocketmine/Server__32bit(0): pocketmine\Server->crashDump(boolean)
#1 /RankUp_v0.3.1.phar/src/rankup/rank/RankStore(39): rankup\permission\PurePerms->getGroup(boolean)
#2 /RankUp_v0.3.1.phar/src/rankup/command/RankUpCommand(19): rankup\rank\RankStore->getNextRank(boolean)
#3 /src/pocketmine/command/SimpleCommandMap(195): rankup\command\RankUpCommand->execute(boolean)
#4 /src/pocketmine/Server__32bit(1937): pocketmine\command\SimpleCommandMap->dispatch(boolean)
#5 /src/pocketmine/Player__32bit(2566): pocketmine\Server->dispatchCommand(boolean)
#6 /src/pocketmine/network/RakLibInterface(140): pocketmine\Player->handleDataPacket(boolean)
#7 /src/raklib/server/ServerHandler__32bit(90): pocketmine\network\RakLibInterface->handleEncapsulated(boolean)
#8 /src/pocketmine/network/RakLibInterface(79): raklib\server\ServerHandler->handlePacket(boolean)
#9 /src/pocketmine/network/Network__32bit(160): pocketmine\network\RakLibInterface->process(boolean)
#10 /src/pocketmine/Server__32bit(2470): pocketmine\network\Network->processInterfaces(boolean)
#11 /src/pocketmine/Server__32bit(2222): pocketmine\Server->tick(boolean)
#12 /src/pocketmine/Server__32bit(2100): pocketmine\Server->tickProcessor(boolean)
#13 /src/pocketmine/Server__32bit(1701): pocketmine\Server->start(boolean)
#14 /src/pocketmine/PocketMine(466): pocketmine\Server->__construct(boolean)
#15 (1): (boolean)
#16 (0): {main}(boolean)

It would be really nice if you can tell me whats wrong exactly, but im guessing its the code it the .phar of the rankup plugin as far as I can see.
I know you've gotten wayyyyyyy more questions about this topic but this is the one thing holding my server back so this is why Im going into detail more than others.
Thanks for reading-CCP

@catgirlinspace
Copy link

Make sure you have PureChat. I think PureChat actually adds groups.

@Ifera
Copy link
Contributor

Ifera commented Feb 25, 2018

@falkirks this is also fixed in the latest commits. After testing no such error occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants