Block player... (freeze)

Hello, i want to block a player,
i want the other player’s can see him, but he can’t move, he can"t jump, (and if i can, he can"t rotate…)

do you have any idea?

    private Player blockedPlayer;
    
    @Listener
    public void blockPlayer(DisplaceEntityEvent.TargetPlayer evt){
        if (evt.getTargetEntity().equals(blockedPlayer)){
            evt.setCancelled(true);
        }
    }

:innocent: But… poor player! :frowning:

yes, thx
it’s that i think, it’s for a gun who block a player…