Class WVisit
java.lang.Object
com.olziedev.playerwarps.api.warp.WVisit
Represents warp visiting that can provide and manage basic visiting data for the warp.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract int
abstract int
abstract void
setWarpVisited
(List<UUID> warpVisited) Modifies the list of the visited players for this warp.abstract void
setWarpVisitedBoosted
(List<UUID> warpVisited) Modifies the list of the visited players for this warp.abstract void
setWarpVisits
(int warpVisits, int purgedWarpVisits) Modifies the amount of visits for this warp.
-
Constructor Details
-
WVisit
public WVisit()
-
-
Method Details
-
getWarpVisits
public abstract int getWarpVisits()- Returns:
- The visits of this warp.
-
getPurgedWarpVisits
public abstract int getPurgedWarpVisits()- Returns:
- The purged visits of this warp (when purged).
-
getWarpVisitedBoosted
- Returns:
- The saved list of visited players of this warp. (Only for boosted visits)
-
getWarpVisited
- Returns:
- The saved list of visited players of this warp. (Only for normal visits)
-
setWarpVisits
public abstract void setWarpVisits(int warpVisits, int purgedWarpVisits) Modifies the amount of visits for this warp.- Parameters:
warpVisits
- Amount of visits.purgedWarpVisits
- Amount of visits of the new purge.
-
setWarpVisitedBoosted
Modifies the list of the visited players for this warp. (Only for boosted visits)- Parameters:
warpVisited
- List of visited players.
-
setWarpVisited
Modifies the list of the visited players for this warp. (Only for normal visits)- Parameters:
warpVisited
- List of visited players.
-