public class IslandPreLevelEvent extends ASkyBlockEvent implements org.bukkit.event.Cancellable
Constructor and Description |
---|
IslandPreLevelEvent(java.util.UUID player,
com.wasteofplastic.askyblock.Island island,
long score) |
Modifier and Type | Method and Description |
---|---|
int |
getLevel()
Deprecated.
Level is stored as a long, so this may give the wrong value for very large level values
|
long |
getLongLevel() |
long |
getLongPointsToNextLevel() |
int |
getPointsToNextLevel()
Deprecated.
points are now stored as a long, so the int value may not be correct with very large values
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancel) |
void |
setLevel(int level) |
void |
setLongLevel(long level)
Set the level
|
void |
setLongPointsToNextLevel(long pointsToNextLevel)
Set the number of points the player requires to reach the next level.
|
void |
setPointsToNextLevel(int pointsToNextLevel)
Set the number of points the player requires to reach the next level.
|
getHandlerList, getHandlers, getIsland, getIslandDistance, getIslandLocation, getIslandOwner, getPlayer, getProtectionSize, getTeamLeader, isLocked
public IslandPreLevelEvent(java.util.UUID player, com.wasteofplastic.askyblock.Island island, long score)
player
- island
- score
- public int getLevel()
public long getLongLevel()
public void setLevel(int level)
level
- the level to setpublic void setLongLevel(long level)
level
- public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancel)
setCancelled
in interface org.bukkit.event.Cancellable
public void setPointsToNextLevel(int pointsToNextLevel)
pointsToNextLevel
- public void setLongPointsToNextLevel(long pointsToNextLevel)
pointsToNextLevel
- public int getPointsToNextLevel()
public long getLongPointsToNextLevel()