Solved Issue about Skript-Mirror

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

rustedst

Active Member
Apr 24, 2020
97
4
8
22
Istanbul, Turkey
Code:
import:
    org.bukkit.entity.Player
    org.bukkit.event.EventHandler
    org.bukkit.event.Listener
    org.bukkit.event.player.PlayerJoinEvent
    org.bukkit.plugin.java.JavaPlugin
    fr.xephi.authme.api.v3.AuthMeApi
    fr.xephi.authme.api.v3.AuthMePlayer
on example event:
    set {_p} to (player).getPlayer()
    set {reg::%player%} to AuthMeApi.isAuthenticated({_p})
No errors at parsing but it gives that error when it's triggered:
No matching method: AuthMeApi#isAuthenticated called with (RustedS (CraftPlayer))
Did you pass the wrong parameters? Here are the parameter signatures for isAuthenticated:
* isAuthenticated(org.bukkit.entity.Player
 
Code:
import:
    org.bukkit.entity.Player
    org.bukkit.event.EventHandler
    org.bukkit.event.Listener
    org.bukkit.event.player.PlayerJoinEvent
    org.bukkit.plugin.java.JavaPlugin
    fr.xephi.authme.api.v3.AuthMeApi
    fr.xephi.authme.api.v3.AuthMePlayer
on example event:
    set {_p} to (player).getPlayer()
    set {reg::%player%} to AuthMeApi.isAuthenticated({_p})
No errors at parsing but it gives that error when it's triggered:
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:
AuthMeApi.getInstance().isAuthenticated(player)
 
  • Like
Reactions: rustedst
Status
Not open for further replies.