How i cand do that?? ( Withou use commands[/ban-ip] ) i try PHP: $player->setBanned(true); but does not works xD and how i can ban his ip??
What?? Use english please! If you mean Here is the answer there is a command which bans their ip so no matter what name they use they are banned. ALthough this doesentbwork on people who have dynamic ip addresses. just do /ban-ip <name> <reason> although you can leave the reason blank
You could dispatch a command that bans them, do it with code or create your own ban system. I'd personally create my own ban system that bans their name, UUID and IP.
$this is to call the '$processIPBan' string. $processIPBan() is exactly what it says, or you don't know what the words mean?
You have no idea what you're talking about, do you? Please don't try to help if you don't understand yourself. You do more harm than help if you do.
I'm not talking, I'm typing. Also you shouldn't be replying in this thread if you're not even going to try to help.
Look at the pocketmine docs. Like this one: http://docs.pocketmine.net/de/df1/_ban_ip_command_8php_source.html:
Read the pocketmine source code and see how they implemented it. PHP: $server->getIPBans()->addBan($ip, $reason, null, $issuerName); Better than you giving wrong solutions. You don't understand PHP. Therefore you think $this is the same everywhere. And gave wrong answers.
Hey make /Ban-IP [Player] and /Ban [Player] [Reason] the Guy can not John with At nother IP with the acc
AMAZING @Artide You gave me an idea! It's to go to Pocketmine/src/pocketmine/command/defaults/bancommand and i CAN EDIT THE CODE AND CHANGE THE KICK message (get kicked because you are banned) to another massage! amazing!