Package me.neznamy.tab.api.placeholder
Interface ServerPlaceholder
- All Superinterfaces:
Placeholder
-
Method Summary
Modifier and TypeMethodDescriptionReturns last known value of the placeholder.request()Calls the placeholder request function and returns the output.voidupdateValue(Object value) Methods inherited from interface me.neznamy.tab.api.placeholder.Placeholder
enableTriggerMode, getIdentifier, getRefresh, unload
-
Method Details
-
updateValue
-
request
Object request()Calls the placeholder request function and returns the output. If the placeholder threw an exception, it is logged inplaceholder-errors.logfile and "ERROR" is returned.- Returns:
- value placeholder returned or "ERROR" if it threw an error
-
getLastValue
String getLastValue()Returns last known value of the placeholder.- Returns:
- last known value
-