> For the complete documentation index, see [llms.txt](https://sonic-rokas.gitbook.io/easybungee/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sonic-rokas.gitbook.io/easybungee/for-developers/spigotplayer.md).

# SpigotPlayer

## Constructors:

#### new SpigotPlayer(String name);

```
name - player's name
```

#### new SpigotPlayer(UUID id);

```
id - player's id
```

## Methods:

#### sendMessage(String message)

message - the message you want to send to the player

sends a message to the player

#### getLocation()

get the player's location

#### getExp()

get the player's exp

#### getExpLevel()

get the player's exp level

#### getFood()

get the player's food level

#### getHealth()

get the player's health

#### getInventory()

get the player's inventory

#### getItemInHand()

get the player's item in hand

#### hasPermission(String permission)

permission - the permission you want to see if a player has

get if the player has the specified permission

#### kill()

kill the player

#### openInventory(SpigotInventory inv)

inv - the inventory you want to open for the player

opens an inventory for the player

#### teleport(SpigotLocation loc)

loc - the location you want to teleport the player

teleport the player into a location

#### playSound(SpigotSound sound)

sound - the sound you want to play

plays a sound to the player

#### setDisplayName(String name)

name - the name you want to set

sets the display name for the player

#### setExp(float exp)

exp - the exp you want to set

sets the exp for the player

#### setExpLevel(int expLevel)

expLevel - the exp level you want to set

sets the exp level for the player

#### setFood(int foodLevel)

foodLevel - the food level you want to set

sets the food level for the player

#### setHealth(double health)

health - the health you want to set

sets the health for the player

#### setGameMode(String gamemode)

gamemode - the gamemode you want to set

sets the gamemode for the player

#### setItemInHand(SpigotItem item)

item - the item you want to set

sets the item in the hand of the player
