Solved New to plugins

Discussion in 'Plugin Development' started by xsidewinderx, Apr 12, 2014.

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

    xsidewinderx

    ---------------------------------------------------------------------------------------------
     
  2. Offline

    Glumpz

    In order to do this you would need to access the Essentials API.
     
  3. Offline

    Europia79

    Last edited by a moderator: Jun 7, 2016
  4. Offline

    Regablith

    Code:java
    1. Essentials essentials = (Essentials)Bukkit.getServer().getPluginManager().getPlugin("Essentials");
    2. User user = essentials.getUser(player);


    then get if they are in god mode (plus other things)

    Code:java
    1. user.isGodModeEnabled()
     
    Europia79 likes this.
  5. Offline

    xsidewinderx

    ---------------------------------------------------------------------------------------------
     
  6. Offline

    Europia79

    xsidewinderx
    gotcha. I wasn't for sure what you were going for. Did you figure this out yet ? Or do you still need help ?

    xsidewinderx
    http://jd.bukkit.org/dev/apidocs/org/bukkit/entity/HumanEntity.html#getGameMode()
    http://rainbowcraft.sytes.net/javad...h2me/essentials/OfflinePlayer.html#isFlying()
    http://rainbowcraft.sytes.net/javadocs/Essentials/com/earth2me/essentials/User.html#isFlyClickJump()
    Regablith already posted the one for isGodModeEnabled()
    Good luck. Lemme know if you need any help.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 7, 2016
Thread Status:
Not open for further replies.

Share This Page