Ambiguous method getPlayer in ServerJS
enigmaquip opened this issue ยท 0 comments
Minecraft Version
1.18.2
KubeJS Version
1802.5.3-build.444
Rhino Version
1802.1.13-build.175
Architectury Version
4.4.65
Forge/Fabric Version
40.1.25
Describe your issue
Trying to call ServerJS.getPlayer() with either a UUID or a String gives an error
[KubeJS Server/]: Error occurred while handling scheduled event callback: The choice of Java method dev.latvian.mods.kubejs.server.ServerJS.getPlayer matching JavaScript argument types (java.util.UUID) is ambiguous; candidate methods are:
class dev.latvian.mods.kubejs.player.ServerPlayerJS getPlayer(java.util.UUID)
class dev.latvian.mods.kubejs.player.ServerPlayerJS getPlayer(java.lang.String)
Crash report/logs
No response