ok so i am getting an error that it expects strtolower with this code PHP: $array = $this->players;$randomPlayer = array_rand($array, 1);array_push($this->vip, $randomPlayer);$person=$this->getServer()->getPlayer($this->vip);$person->sendMessage("You Are The Bounty");$person->setNameTag("[Bounty]".$person->getName());$person->teleport($this->vipSlot);
$this->vip is an array (it should be) so you can not get Player by array. so maybe PHP: $array = $this->players;$randomPlayer = array_rand($array, 1);$this->vip[] = $randomPlayer;$person = $this->getServer()->getPlayer($this->vip);$person->sendMessage("You Are The Bounty");$person->setNameTag("[Bounty]".$person->getName());$person->teleport($this->vipSlot);
Please post all of your code. And the error. Also, use $this->vips[] because instead of array_push - it is faster - it looks better
No use telling him, because some people assume we're all mind readers and that we know exactly what the non-posted code is.
Its a common mistake people assume bc your plugin developer that your automatically gonna be able to know what was done wrong
No use if he doesn't post the full code. If I gave you this: PHP: function sayHello(){ echo "Say hello";} And I told you to find what kept causing "Invalid Argument: Array required, object given" wouldn't you have asked the person who asked the question about the code the question?
Im saying its a mistake people eith absolutly no knowledge tend to believe in developers are "no longer human"