I would like to code that when a player execute /levelup that he will be added to a new existing group using PurePerms. How i should code this? This is not working: PHP: $this->getServer()->getPluginManager()->getPlugin("PurePerms")->addToGroup($name, "Developer"); What should i use use instead?
Take a look at PurePerms' UserDataManager: https://github.com/poggit-orphanage...rc/_64FF00/PurePerms/data/UserDataManager.php
Now it crashs because '$this' is unexpected... PHP: $pperms = $this->getServer()->getPluginManager()->getPlugin("PurePerms"); and yes, before you ask, o registered the Events on onEnable()..