> For the complete documentation index, see [llms.txt](https://plugins-1.gitbook.io/plugins/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://plugins-1.gitbook.io/plugins/apis/lib/other-utils/papiutil.md).

# PAPIUtil

We've created a simple class which handles converting a String to a PlaceholderAPI translated message, while providing support for if the plugin isn't on the server.

```java
String translated = PAPIUtil.parse(player, "Hi %player%!");
```

We automatically convert %player% to the players username, but if you included any PAPI variables these will be changed if the plugin is present on the server.
