Skip to content
This repository was archived by the owner on Apr 14, 2025. It is now read-only.
Discussion options

You must be logged in to vote

I've ran into this very same issue before (for the same event in fact) and if I remember correctly its due to there being a (private?) property in the Player class also named hasPlayedBefore and for some reason it's coercing that and due to how Lua works you can't have two named the same thing.

I'm unavailable to test myself but try to simply access it like a property like this: event:getPlayer().hasPlayedBefore

Also your comment about not being able to get Inventory#addItem(ItemStack...) to work. Have you tried passing the items stacks as a table?

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by Saturn745
Comment options

You must be logged in to vote
4 replies
@Saturn745
Comment options

@Saturn745
Comment options

@Grabsky
Comment options

@Saturn745
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants