Class StatusManager
java.lang.Object
de.themoep.resourcepacksplugin.core.UserManager
de.themoep.resourcepacksplugin.core.StatusManager
public class StatusManager
extends de.themoep.resourcepacksplugin.core.UserManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
checkForPackRemoval
(UUID playerId, de.themoep.resourcepacksplugin.core.ResourcePack pack, ResourcePackStatus status) Remove the cached pack if the status is one that ends up with the player not having a packclearStatus
(UUID playerId, de.themoep.resourcepacksplugin.core.ResourcePack pack) Remove a player's status completelyclearStatuses
(UUID playerId) Remove a player's status completelyvoid
int
Deprecated.Get the last resource pack status send by a player by his idgetStatuses
(UUID playerId) Get the last resource pack statuses send by a player by his idvoid
removeUserPack
(UUID playerId, de.themoep.resourcepacksplugin.core.ResourcePack pack) void
setPromptTimeout
(int promptTimeout) setStatus
(UUID playerId, de.themoep.resourcepacksplugin.core.ResourcePack pack, ResourcePackStatus status) Set the last resource pack status send by a player by his idsetStatus
(UUID playerId, ResourcePackStatus status) Deprecated.void
startTimeout
(UUID playerId, de.themoep.resourcepacksplugin.core.ResourcePack pack) void
stopTimeout
(UUID playerId, de.themoep.resourcepacksplugin.core.ResourcePack pack) void
stopTimeouts
(UUID playerId) Methods inherited from class de.themoep.resourcepacksplugin.core.UserManager
addUserPack, clearUserPack, clearUserPacks, getUserPack, getUserPacks, getUserPacks, onConnect, onDisconnect, removeUserPack, setUserPack, updatePackTime
-
Constructor Details
-
StatusManager
-
-
Method Details
-
setStatus
Deprecated.Set the last resource pack status send by a player by his id- Parameters:
playerId
- The UUID of the playerstatus
- The status- Returns:
- The previous ResourcePackStatus; null if the player has none
-
setStatus
public ResourcePackStatus setStatus(UUID playerId, de.themoep.resourcepacksplugin.core.ResourcePack pack, ResourcePackStatus status) Set the last resource pack status send by a player by his id- Parameters:
playerId
- The UUID of the playerpack
- The packstatus
- The status- Returns:
- The previous ResourcePackStatus; null if the player has none
-
getStatus
Deprecated.UsegetStatus(UUID, ResourcePack)
insteadGet the last resource pack status send by a player by his id- Parameters:
playerId
- The UUID of the player- Returns:
- The ResourcePackStatus; null if the player has none
-
getStatus
public ResourcePackStatus getStatus(UUID playerId, de.themoep.resourcepacksplugin.core.ResourcePack pack) Get the last resource pack status send by a player by his id- Parameters:
playerId
- The UUID of the playerpack
- The pack- Returns:
- The ResourcePackStatus; null if the player has none
-
getStatuses
Get the last resource pack statuses send by a player by his id- Parameters:
playerId
- The UUID of the player- Returns:
- The ResourcePackStatuses, empty map if they have none
-
clearStatuses
Remove a player's status completely- Parameters:
playerId
- The UUID of the player- Returns:
- The previous ResourcePackStatuses; null if the player did not have one
-
clearStatus
public ResourcePackStatus clearStatus(UUID playerId, de.themoep.resourcepacksplugin.core.ResourcePack pack) Remove a player's status completely- Parameters:
playerId
- The UUID of the playerpack
- The pack- Returns:
- The previous ResourcePackStatus; null if the player did not have one
-
removeUserPack
- Overrides:
removeUserPack
in classde.themoep.resourcepacksplugin.core.UserManager
-
clearUserPacks
public void clearUserPacks()- Overrides:
clearUserPacks
in classde.themoep.resourcepacksplugin.core.UserManager
-
setPromptTimeout
public void setPromptTimeout(int promptTimeout) -
getPromptTimeout
public int getPromptTimeout() -
startTimeout
-
stopTimeout
-
stopTimeouts
-
checkForPackRemoval
public boolean checkForPackRemoval(UUID playerId, de.themoep.resourcepacksplugin.core.ResourcePack pack, ResourcePackStatus status) Remove the cached pack if the status is one that ends up with the player not having a pack- Parameters:
playerId
- The UUID of the playerpack
- The packstatus
- The status- Returns:
- Whether the pack was removed or not
-
getStatus(UUID, ResourcePack)
instead