Solved How to make CommandSender sender get the player

Discussion in 'Plugin Development' started by finalblade1234, Jan 20, 2013.

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

    finalblade1234

    Ok so im wondering how to make it so when a player preforms the Command "speed" it gives them the potion effect speed but i just want it to be 1 command long
     
  2. Offline

    bryce325

    Player player = (Player) sender;
     
  3. Offline

    Johnzeh

    First do Player player = (Player) sender;
    Then you can just do player.(whatever)
     
Thread Status:
Not open for further replies.

Share This Page