> For the complete documentation index, see [llms.txt](https://daikirai.gitbook.io/scripting/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://daikirai.gitbook.io/scripting/documentation/network.md).

# network

{% hint style="info" %}
assumes variable `networkPlayer` is defined.

example: `NetworkPlayer networkPlayer = entity.getNetworkPlayer();`

see also: [`entity.getNetworkPlayer()`](/scripting/documentation/entity.md#getnetworkplayer) or [`world.getNetworkPlayers()`](/scripting/documentation/world.md#getnetworkplayers)
{% endhint %}

### getCape

returns the cape resource path for the player, or `null` when unavailable.

```java
String cape = networkPlayer.getCape();
```

***

### getDisplayName

returns the formatted display name of the player.

```java
String displayName = networkPlayer.getDisplayName();
```

***

### getName

returns the unformatted player name.

```java
String name = networkPlayer.getName();
```

***

### getPing

returns the ping of the player in milliseconds.

```java
int ping = networkPlayer.getPing();
```

***

### getSkinData

returns the skin data encoded as a json string, or `null` if missing.

```java
String skinData = networkPlayer.getSkinData();
```

***

### getUUID

returns the uuid of the player.

```java
String uuid = networkPlayer.getUUID();
```
