Need Assistance with spigot/bukkit library

Status
This thread has been locked.

Smoofy

Feedback score
0
Posts
1
Reactions
0
Resources
0
I am coding in java using spigot/bukkit 1.14.4 library, I basically am looking for a way of getting a player using a brewing stand. My objective is to only allow specific players to get specific potions, as well as not letting other players use it at all. I first thought of creating a hashmap with first value location of the brewing stand and second value: the player. (Since we can get the block's location in BrewEvent and I can get the player by using PlayerInteractEvent) but the console returned null when I reach to the hashmap in the BrewEvent, since then I am trying to do this in another way (maybe i might go into packets? Is it ok?)

(This paragraph is quoted off of my friend, i am trying to help him out, please if you got any experience look out for us)
 
Status
This thread has been locked.
Top