Solved GroupManager and PlayerQuitEvent

Discussion in 'Plugin Development' started by ipodtouch0218, Jun 23, 2016.

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

    ipodtouch0218

    Hello, I am making a simple plugin for custom Join and Quit messages depending on permissions.

    It works fine with PermissionsEx, but when I try to use it with GroupManager, player.hasPermission() always returns false, making the quit message to null. Why is it that the plugin doesn't work with GroupManager?

    Thanks in advance.

    Code: http://pastebin.com/Kq51491m


    EDIT: Okay.. seemed to have fixed itself.. must have been a problem with GroupManager.
     
    Last edited: Jun 23, 2016
  2. Offline

    bennie3211

    Why not using the Vault API for permission? Then all types of permission managers (supported by vault) can be used with your plugin.
     
  3. Offline

    timtower Moderator Moderator

    Because it is overkill for getting the permissions.
    Permission plugins should use the default system anyways to provide them.
     
    bennie3211 likes this.
Thread Status:
Not open for further replies.

Share This Page