Effective way to "Freeze" a player? (no movement)

Discussion in 'Plugin Development' started by Fishrock123, Dec 15, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    MrMag518

    I believe this topic is getting off-topic and really old..
     
  2. Offline

    GetGoodKid

    So whats the conclusion though? What is the best way to freeze a player? Also, what is the best way to freeze a player on a horse?
     
  3. Offline

    n31ln3t

    Did anybody mention:
    @EventHandler
    public void onPlayerMove(PlayerMoveEvent e){
    if(freeze == true){ //Checks to see the boolean freeze to see if it equals true.
    Player player = e.getPlayer(); //Make player object.
    player.teleport(player); //This teleports the player to his location.

    }

    }

    Just make a boolean variable called freeze, and set it to true if you want whenever you want to freeze the player :p

    Nvm, this topic is old!
     
Thread Status:
Not open for further replies.

Share This Page