mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-24 00:33:49 -07:00
@@ -64,4 +64,16 @@ public interface Player extends HumanEntity, CommandSender {
|
||||
* @return true if the command was successful, otherwise false
|
||||
*/
|
||||
public boolean performCommand(String command);
|
||||
|
||||
/**
|
||||
* Returns if the player is in sneak mode
|
||||
* @return true if player is in sneak mode
|
||||
*/
|
||||
public boolean isSneaking();
|
||||
|
||||
/**
|
||||
* Sets the sneak mode the player
|
||||
* @param sneak true if player should appear sneaking
|
||||
*/
|
||||
public void setSneaking(boolean sneak);
|
||||
}
|
||||
|
Reference in New Issue
Block a user