hello I have this error in the latest pocketmine build on the RankUp plugin. The plugin disables for reason: Code: [11:59:12] [Server thread/CRITICAL]: ErrorException: "Undefined index: exit" (EXCEPTION) in "/plugins/RankUp-master/src/rankup/doesgroups/RankUpDoesGroups" at line 66 This is line 66 of rankup, idk whats wrong with it PHP: $this->groups[$name] = new Group($this, $name, $perms, $groupData['entrance'], $groupData['exit'], $groupData['members']); Line 57 - 72 PHP: public function initPermissions(){ foreach($this->config->get('groups') as $name => $groupData){ $perms = []; foreach($groupData['perms'] as $str){ $str = $this->getServer()->getPluginManager()->getPermission($str); if($str instanceof Permission){ $perms[] = $str; } } $this->groups[$name] = new Group($this, $name, $perms, $groupData['entrance'], $groupData['exit'], $groupData['members']); } } /* * Do NOT use this function */ public function saveMembers(){ Please help! thanks
That error means that 'exit' isn't an array key in $groupData Syntax errors such as these should be posted on StackOverflow instead of these forums.
Correct syntax for `groups` in config: Code: groups: groupNameHere: entrance: whatever-should-be-here exit: whatever-should-be-here members: whatever-should-be-here perms: [an.array, of.permissions.here] anotherGroupNameHere: entrance: whatever-should-be-here exit: whatever-should-be-here members: whatever-should-be-here perms: [an.array, of.permissions.here]
@SOFe is correct. Adding to that, RankUpDoesGroups is really rough and quickly put together, which means you may run into errors like this. If you are looking for a more advanced group manager, you should consider trying PurePerms. I will try to get a fix out for this soon, hopefully I don't forget.