1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Issue about Skript-Mirror

Discussion in 'Skript' started by rustedst, May 29, 2020.

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

    rustedst Active Member

    Joined:
    Apr 24, 2020
    Messages:
    97
    Likes Received:
    4
    Code (Text):
    1. import:
    2.     org.bukkit.entity.Player
    3.     org.bukkit.event.EventHandler
    4.     org.bukkit.event.Listener
    5.     org.bukkit.event.player.PlayerJoinEvent
    6.     org.bukkit.plugin.java.JavaPlugin
    7.     fr.xephi.authme.api.v3.AuthMeApi
    8.     fr.xephi.authme.api.v3.AuthMePlayer
    9. on example event:
    10.     set {_p} to (player).getPlayer()
    11.     set {reg::%player%} to AuthMeApi.isAuthenticated({_p})
    No errors at parsing but it gives that error when it's triggered:


     
  2. Best Answer:
    Post #3 by TPGamesNL, May 29, 2020
  3. novastosha

    novastosha Well-Known Member

    Joined:
    Jan 11, 2019
    Messages:
    344
    Likes Received:
    22
    on "org.bukkit.event.player.PlayerJoinEvent"
     
  4. TPGamesNL

    Supporter Addon Developer Dev Programme

    Joined:
    Jan 20, 2018
    Messages:
    1,500
    Likes Received:
    107
    Medals:
    The method is not static, so you have to call it on an instance of AuthMeApi. In the case of AuthMeApi, that can be achieved with
    Code (Text):
    1. AuthMeApi.getInstance().isAuthenticated(player)
     
    • Like Like x 1
  5. rustedst

    rustedst Active Member

    Joined:
    Apr 24, 2020
    Messages:
    97
    Likes Received:
    4
    Yeah, I already fixed it with that and that's the solution. Thanks.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...