Refresh/Reload Permissions?

Discussion in 'Plugin Development' started by krconv, Jul 5, 2012.

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

    krconv

    Ok, so I am creating a plugin that changes the name of a player, and my issue is that my permissions plugin (PEX in my case) isn't "refreshing" for the new name. I know doing a /PEX reload will fix it, so it must be something that is able to be done. Is there someway of sending a fake join event to permissions so that it realizes that entity has a new name? Or a method that will reload the permissions?
     
  2. try Bukkit.reload()
     
  3. Offline

    krconv

    That would run a full reload correct? Because fully reloading pex breaks features :/
     
  4. I never had problems whit permissions bukkit whit full reloading / particly reloading, mayby isn't pex desinged to be reloaded?
     
  5. Offline

    krconv

    Ya, I know if multiverse and pex are reloaded on the same server, pex stops working right
     
  6. Offline

    chaseoes

    You could run the pex reload command through console?
    Code:
    getServer().dispatchCommand(getServer().getConsoleSender(), "pex reload");
     
  7. Offline

    krconv

    Sounds like that will work, thank you :)
     
Thread Status:
Not open for further replies.

Share This Page