Solved Force Player to Sneak?

Discussion in 'Plugin Development' started by Orange Tabby, Dec 21, 2015.

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

    Orange Tabby

    Solved: I is working but doesn't show up client side ;D
    Hello, I'm making a plugin where I would like it to force a player to sneak for one second like if they tapped the shift button, but I don't know if it's possible I googled and didn't find anything useful.
    I have tried this
    Code:
    Player p = (Player) sender;
    p.setSneaking(true);
    but it doesn't work :'(

    Please Help I don't even know if it's possible, Free Cake [cake] :D
     
    Last edited: Dec 22, 2015
  2. So, I'm guessing you solved it? It'd be awesome if you posted your solution, or better, how you thought of your solution, so that someone else searching this forum with the same or similar issue could see how you solved it :)
     
    mine-care likes this.
Thread Status:
Not open for further replies.

Share This Page