Package com.djrapitops.plan.extension
Interface Caller
-
- All Known Implementing Classes:
CallerImplementation
public interface Caller
Interface for manually calling update methods on a registeredDataExtension
.You can obtain an instance by registering an extension via
ExtensionService.register(DataExtension)
.Plan calls the methods in DataExtension based on
CallEvents
defined by
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
updatePlayerData(java.util.UUID playerUUID, java.lang.String playerName)
Calls all player methods of the associatedDataExtension
.void
updateServerData()
Calls all server methods of the associatedDataExtension
.
-
-
-
Method Detail
-
updatePlayerData
void updatePlayerData(java.util.UUID playerUUID, java.lang.String playerName) throws java.lang.IllegalArgumentException
Calls all player methods of the associatedDataExtension
.Player methods have
UUID
orString
as a method parameter and a Provider annotation.- Parameters:
playerUUID
- UUID of the player.playerName
- Name of the player.- Throws:
java.lang.IllegalArgumentException
- If playerUUID or playerName is null.
-
updateServerData
void updateServerData()
Calls all server methods of the associatedDataExtension
.Server methods have no parameters or
Group
method parameter and a Provider annotation.
-
-