How do i add something like /kill [player] ? This [player] how do I add that ? I want to make a plugin where I can set the players max helth but I don't know how to make they I can type in the player name in chat and it will set his helth. I thinks it has something to do with [args] but I'm not sure Thanks
Thanks but I know that I want to find out wen I'm in game and I do /setmaxhelth MyAJVideo how do I get like the name which I will use in the programing
So how would i add that to a message which just tells him something ? So something like /hi MyAJVideo and that will just say hello this is a message ?
Everybody says I supose to learn php I have alredy learned it but in German so many things are different in words
Also, du kannst den Spieler so auf dem Server finden: PHP: $player = $args[1];if($player = $this->getServer()->getPlayer($player)){ // Spieler auf dem Server} else{ // Spieler nicht auf dem Server}
Popup is above the hotbar, like when switching an item. The Text on there is a popup. A Tip is in the middle of the screen and a big bigger, like when using a boat.
He asked if sendMessage(); is the right way to send a message. I said yes, and I gave him some other informations about messages. Please read before posting. Thanks!
Well, in that case he asked to send a Message to a Player($args[1]) which he has to define/check as a Player first(my post), then he can do $player->sendMessage(). In the posts of @iDirtPlayzMC and @GmWM they didn't define $player, so it wouldn't work to change $sender to $player -> That's not what @MyAJVideo wanted