09. API

Although the plugin is not intended to be an API, it is possible to use the different placeholders by importing the PlaceholdersHandler class in your Java code :

import net.vdcraft.arvdc.timemanager.mainclass.PlaceholdersHandler

Then use one of the following methods to transform one or more placeholders in any string :

String replaceAllPlaceholders(String msg, String world, String lang, Player p)
String replaceAllPlaceholders(String msg, String world, String lang)
String replaceAllPlaceholders(String msg, World w, String lang, Player p)
String replaceAllPlaceholders(String msg, World w, String lang)

It is possible to retrieve the client language by importing the following class :

import net.vdcraft.arvdc.timemanager.mainclass.PlayerLangHandler

Then use one of the following of the following methods :

String setLangToUse(CommandSender sender)
String setLangToUse(Player p)