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.
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.
Last updated