Hello. Thanks for a great forum. I need to, from my plugin hook to PermissionsBukkit plugin to fetch some information about groups on the server. I have never done this before so i need some advice. This is what i have done so far, downloaded PermissionsBukkit.jar added that file to a folder named lib in my eclipse project. Added this to my pom Code: <dependency> <groupId>com.platymuus.bukkit.permissions.PermissionsPlugin</groupId> <artifactId>PermissionsBukkit</artifactId> <version>2.3</version> <optional>true</optional> <scope>system</scope> <systemPath>${project.basedir}/lib/PermissionsBukkit.jar</systemPath> </dependency> Could someone point me in the right direction? Is my approach the right way to go?
You can do it this way or you could use Vault's Permissions API, Though I am not sure about groups... From what I know, PermissionsBukkit was written to be used with the Vault permissions API. If you can't seen to get the Vault permissions API working, you can always resort to fetching the information from the file itself.
Isaksson You can use PluginManager#getPlugin("PermissionsBukkit") to get the plugin instance. It has a method getGroup(String groupName) which you can work with. Take a look at the source code of Permissions Bukkit: https://github.com/SpaceManiac/Perm...uus/bukkit/permissions/PermissionsPlugin.java