I'm trying to make a cratekey plugin and I need to know how to randomly get something from an array and set it to a variable and it will become a variable every time someone touches the crate so its random
maybe it's moved to facepalm so it got remake see clone https://forums.pmmp.io/threads/how-...able-for-playerinteractevent.4142/#post-39019
PHP: $stuff = ["Juice", "dktapps", "shoghicp"];$randomstuff = $stuff[array_rand($stuff)]; The event for touching blocks is PlayerInteractEvent, there are many resources to find out how to use it