$player->hasEffect(Effect::SPEED) will return a bool result for whether or not the player has the effect.
Oh, you should specify better in future posts. Or better yet, search before you create a repeat post. These links should help: https://forums.pmmp.io/threads/speed-in-my-server.831/#post-10341 http://forums.pocketmine.net/threads/how-to-get-player-speed.18317/#post-171488 http://forums.pocketmine.net/threads/speed-jump-fly-hack.14390/
Please stop using Google Translate to translate thw whole website, it bugs arount totally, just paste the words you don't understand on translate.google.com...
There is lot of ways how to check player speed. One of them is checking move distance. Example: PHP: public function onMove(PlayerMoveEvent $e){$p =$e->getPlayer();$a = $e->getFrom();$b = $e->getTo();$speed = $a->distance($b); This check distance. But to make you sure if player is using speed hack check time between getting from current position to new position }[/PHP]
Ok thanks i hope thats right. PHP: if($distance > 6 && $time < 5.6) { $player->kick("Speed is not allowed"); }