Hooking a plugin

Discussion in 'Plugin Development' started by Isaksson, Aug 21, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Isaksson

    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?
     
  2. Offline

    MasterDoctor

    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.
     
  3. Offline

    Zettelkasten

Thread Status:
Not open for further replies.

Share This Page