Class OnlineSDBPlayer
java.lang.Object
nl.minetopiasdb.api.playerdata.objects.OnlineSDBPlayer
- All Implemented Interfaces:
SDBPlayer
OnlineSDBPlayer object
-
Constructor Summary
ConstructorDescriptionOnlineSDBPlayer
(UUID uuid, String prefix, String prefixcolor, String selectedChatcolor, String citycolor, String levelcolor, int level, boolean chatspy, boolean commandspy, boolean staffchat, int graycoins, double goldshards, double grayshards, double luckyshards, OnlineFitness fitness, int seconds, int minutes, int hours, int days, long deathbanmillis, boolean handcuffed, UUID handcuffedBy, boolean fitnessreset) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add the configurable handcuff effects.Get the citycolor of this SDBPlayer.long
The value ofSystem.currentTimeMillis()
when the deathban of this SDBPlayer expires.Get the fitness object of this SDBPlayer.long
Get the time that the freeze expires (or -1 when player isn't frozen)double
Get the amount of goldshards this SDBPlayer has.Get a formatted string that represents the amount of goldshards this SDBPlayer has.int
Get the amount of graycoins this SDBPlayer has.double
Get the amount of grayshards this SDBPlayer has.Get a formatted string that represents the amount of grayshards this SDBPlayer has.Get the possibly null UUID of the player who handcuffed this SDBPlayer.int
getLevel()
Get the level of this SDBPlayer.Get the levelcolor of this SDBPlayer.double
Get the amount of luckyshards this SDBPlayer has.Get a formatted string that represents the amount of luckyshards this SDBPlayer has.org.bukkit.entity.Player
Get the Bukkit player instance that represents this SDBPlayerGet the prefix of this SDBPlayer.Get the prefixcolor of this SDBPlayer.Get the current selected chatcolor of this player.double
Get the temperature at the location of this playerint
Get the online days of this SDBPlayer.int
Get the online hours of this SDBPlayer.int
Get the online minutes of this SDBPlayer.int
Get the online seconds of this SDBPlayer.getUUID()
Get the UUID of this SDBPlayer.void
handcuffPlayer
(UUID handcuffedBy) Handcuff a player.boolean
See if this SDBPlayer has chatspy enabled.boolean
See if this SDBPlayer has commandspy enabled.boolean
Check if player has a pending fitness resetboolean
See if this SDBPlayer has staffchat muted.boolean
Check if player is currently in staffchatboolean
Check if player is handcuffed.void
muteStaffChat
(boolean muted) Mute or unmute staffchat for this SDBPlayer.void
muteStaffChatSilent
(boolean muted) Mute or unmute staffchat for this SDBPlayer without communicating it through message channels.void
Remove the configurable handcuff effects if this player has any.void
reset()
Reset the MinetopiaSDB playerdata of this player, this does not includes fitnessdata.void
setChatSpy
(boolean chatspy) Enable or disable chatspy for this SDBPlayer.void
setChatSpySilent
(boolean chatspy) Enable or disable chatspy for this SDBPlayer without communicating it through message channels.void
setCitycolor
(String citycolor) Change the citycolor of this SDBPlayer.void
setCitycolorSilent
(String citycolor) Change the citycolor of this SDBPlayer without communicating it through message channels.void
setCommandSpy
(boolean commandspy) Enable or disable commandspy for this SDBPlayer.void
setCommandSpySilent
(boolean commandspy) Enable or disable commandspy for this SDBPlayer without communicating it through message channels.void
setDeathbanTime
(long deathbanmillis) Change until what value ofSystem.currentTimeMillis()
the deathban of this SDBPlayer expires.void
setDeathbanTimeSilent
(long deathbanmillis) Change until what value ofSystem.currentTimeMillis()
the deathban of this SDBPlayer expires without communicating it through message channels.void
setFitness
(Fitness fitness) Change the fitness object of this SDBPlayer.void
setFitnessReset
(boolean fitnessreset) Enable or disable a fitnessreset for this SDBPlayer.void
setFitnessResetSilent
(boolean fitnessreset) Enable or disable a fitnessreset for this SDBPlayer without communicating it through message channels.void
setFrozenUntil
(long frozenUntil) Freeze the player until the provided epoch time.void
setGoldShards
(double goldshards) Change the amount of goldshards this SDBPlayer has.void
setGoldShardsSilent
(double goldshards) Change the amount of goldshards this SDBPlayer has without communicating it through message channels.void
setGrayCoins
(int graycoins) Change the amount of graycoins this SDBPlayer has.void
setGrayCoinsSilent
(int graycoins) Change the amount of grayoincs this SDBPlayer has without communicating it through message channels.void
setGrayShards
(double grayshards) Change the amount of grayshards this SDBPlayer has.void
setGrayShardsSilent
(double grayshards) Change the amount of grayshards this SDBPlayer has without communicating it through message channels.void
setLevel
(int level, LevelChangeReason reason) Change the level of this SDBPlayer.void
setLevelColor
(String levelcolor) Change the levelcolor of this SDBPlayer.void
setLevelColorSilent
(String levelcolor) Change the levelcolor of this SDBPlayer without communicating it through message channels.void
setLevelSilent
(int level) Change the level of this SDBPlayer without communicating it through message channels.void
setLuckyShards
(double luckyshards) Change the amount of luckyshards this SDBPlayer has.void
setLuckyShardsSilent
(double luckyshards) Change the amount of luckyshards this SDBPlayer has without communicating it through message channels.void
Change the prefix of this SDBPlayer.void
setPrefixColor
(String prefixcolor) Change the prefixcolor of this SDBPlayer.void
setPrefixColorSilent
(String prefixcolor) Change the prefixcolor of this SDBPlayer without communicating it through message channels.void
setPrefixSilent
(String prefix) Change the prefix of this SDBPlayer without communicating it through message channels.void
setSelectedChatColor
(String selectedChatcolor) Change the selected chatcolor of this SDBPlayer.void
setSelectedChatColorSilent
(String selectedChatcolor) Change the selected chatcolor of this SDBPlayer without communicating it through message channels.void
setTimeDays
(int days) Change the online days of this SDBPlayer.void
setTimeDaysSilent
(int days) Change the online days of this SDBPlayer without communicating it through message channels.void
setTimeHours
(int hours) Change the online hours of this SDBPlayer.void
setTimeHoursSilent
(int hours) Change the online hours of this SDBPlayer without communicating it through message channels.void
setTimeMinutes
(int minutes) Change the online minutes of this SDBPlayer.void
setTimeMinutesSilent
(int minutes) Change the online minutes of this SDBPlayer without communicating it through message channels.void
setTimeSeconds
(int seconds) Change the online seconds of this SDBPlayer.void
setTimeSecondsSilent
(int seconds) Change the online seconds of this SDBPlayer without communicating it through message channels.void
Remove the handcuffs from a player.void
void
Update the scoreboard for this playerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface nl.minetopiasdb.api.playerdata.objects.SDBPlayer
isWearingBivak
-
Constructor Details
-
OnlineSDBPlayer
public OnlineSDBPlayer(UUID uuid, String prefix, String prefixcolor, String selectedChatcolor, String citycolor, String levelcolor, int level, boolean chatspy, boolean commandspy, boolean staffchat, int graycoins, double goldshards, double grayshards, double luckyshards, OnlineFitness fitness, int seconds, int minutes, int hours, int days, long deathbanmillis, boolean handcuffed, UUID handcuffedBy, boolean fitnessreset)
-
-
Method Details
-
getUUID
Get the UUID of this SDBPlayer. -
getPlayer
public org.bukkit.entity.Player getPlayer()Get the Bukkit player instance that represents this SDBPlayer- Returns:
- Bukkit player instance for this SDBPlayer.
-
getPrefix
Get the prefix of this SDBPlayer. -
setPrefix
Change the prefix of this SDBPlayer. -
getPrefixColor
Get the prefixcolor of this SDBPlayer.- Specified by:
getPrefixColor
in interfaceSDBPlayer
- Returns:
- the prefixcolor that this SDBPlayer has.
-
setPrefixColor
Change the prefixcolor of this SDBPlayer.- Specified by:
setPrefixColor
in interfaceSDBPlayer
- Parameters:
prefixcolor
- New prefixcolor of this SDBPlayer.
-
getSelectedChatColor
Get the current selected chatcolor of this player.- Specified by:
getSelectedChatColor
in interfaceSDBPlayer
- Returns:
- currently selected chatcolor of this player.
-
setSelectedChatColor
Change the selected chatcolor of this SDBPlayer.- Specified by:
setSelectedChatColor
in interfaceSDBPlayer
- Parameters:
selectedChatcolor
- the newly selected chatcolor of this player.
-
getCitycolor
Get the citycolor of this SDBPlayer.- Specified by:
getCitycolor
in interfaceSDBPlayer
- Returns:
- the citycolor that this SDBPlayer has.
-
setCitycolor
Change the citycolor of this SDBPlayer.- Specified by:
setCitycolor
in interfaceSDBPlayer
- Parameters:
citycolor
- the new citycolor of this player.
-
getLevelColor
Get the levelcolor of this SDBPlayer.- Specified by:
getLevelColor
in interfaceSDBPlayer
- Returns:
- the levelcolor that this SDBPlayer has.
-
setLevelColor
Change the levelcolor of this SDBPlayer.- Specified by:
setLevelColor
in interfaceSDBPlayer
- Parameters:
levelcolor
- the new levelcolor of this player.
-
getLevel
public int getLevel()Get the level of this SDBPlayer. -
setLevel
Change the level of this SDBPlayer. -
hasChatspy
public boolean hasChatspy()See if this SDBPlayer has chatspy enabled.- Specified by:
hasChatspy
in interfaceSDBPlayer
- Returns:
- true if player has chatspy enabled.
-
setChatSpy
public void setChatSpy(boolean chatspy) Enable or disable chatspy for this SDBPlayer.- Specified by:
setChatSpy
in interfaceSDBPlayer
- Parameters:
chatspy
- True if player should have chatspy enabled, false if player shouldn't have it enabled.
-
hasFitnessReset
public boolean hasFitnessReset()Check if player has a pending fitness reset- Specified by:
hasFitnessReset
in interfaceSDBPlayer
- Returns:
- true if player has fitness reset
-
setFitnessReset
public void setFitnessReset(boolean fitnessreset) Enable or disable a fitnessreset for this SDBPlayer.- Specified by:
setFitnessReset
in interfaceSDBPlayer
- Parameters:
fitnessreset
- True if player should have a pending fitnessreset, false if player shouldn't have one.
-
hasCommandSpy
public boolean hasCommandSpy()See if this SDBPlayer has commandspy enabled.- Specified by:
hasCommandSpy
in interfaceSDBPlayer
- Returns:
- true if player has commandspy enabled.
-
setCommandSpy
public void setCommandSpy(boolean commandspy) Enable or disable commandspy for this SDBPlayer.- Specified by:
setCommandSpy
in interfaceSDBPlayer
- Parameters:
commandspy
- True if player should have commandspy enabled, false if player shouldn't have it enabled.
-
inStaffChat
public boolean inStaffChat()Check if player is currently in staffchat- Returns:
- true if player is in staffchat
-
hasMutedStaffChat
public boolean hasMutedStaffChat()See if this SDBPlayer has staffchat muted.- Specified by:
hasMutedStaffChat
in interfaceSDBPlayer
- Returns:
- true if player has staffchat muted.
-
muteStaffChat
public void muteStaffChat(boolean muted) Mute or unmute staffchat for this SDBPlayer.- Specified by:
muteStaffChat
in interfaceSDBPlayer
- Parameters:
muted
- True if player should have staffchat muted, false if player shouldn't have it muted.
-
getGrayCoins
public int getGrayCoins()Get the amount of graycoins this SDBPlayer has.- Specified by:
getGrayCoins
in interfaceSDBPlayer
- Returns:
- the amount of graycoins that this SDBPlayer has.
-
setGrayCoins
public void setGrayCoins(int graycoins) Change the amount of graycoins this SDBPlayer has.- Specified by:
setGrayCoins
in interfaceSDBPlayer
- Parameters:
graycoins
- the new amount of graycoins this player has.
-
getGoldShards
public double getGoldShards()Get the amount of goldshards this SDBPlayer has.- Specified by:
getGoldShards
in interfaceSDBPlayer
- Returns:
- the amount of goldshards that this SDBPlayer has.
-
getGoldShardsFormatted
Get a formatted string that represents the amount of goldshards this SDBPlayer has.- Specified by:
getGoldShardsFormatted
in interfaceSDBPlayer
- Returns:
- formatted string that represents the amount of goldshards.
-
setGoldShards
public void setGoldShards(double goldshards) Change the amount of goldshards this SDBPlayer has.- Specified by:
setGoldShards
in interfaceSDBPlayer
- Parameters:
goldshards
- the new amount of goldshards this player has.
-
getGrayShards
public double getGrayShards()Get the amount of grayshards this SDBPlayer has.- Specified by:
getGrayShards
in interfaceSDBPlayer
- Returns:
- the amount of grayshards that this SDBPlayer has.
-
getGrayShardsFormatted
Get a formatted string that represents the amount of grayshards this SDBPlayer has.- Specified by:
getGrayShardsFormatted
in interfaceSDBPlayer
- Returns:
- formatted string that represents the amount of grayshards.
-
setGrayShards
public void setGrayShards(double grayshards) Change the amount of grayshards this SDBPlayer has.- Specified by:
setGrayShards
in interfaceSDBPlayer
- Parameters:
grayshards
- the new amount of grayshards this player has.
-
getLuckyShards
public double getLuckyShards()Get the amount of luckyshards this SDBPlayer has.- Specified by:
getLuckyShards
in interfaceSDBPlayer
- Returns:
- the amount of luckyshards that this SDBPlayer has.
-
getLuckyShardsFormatted
Get a formatted string that represents the amount of luckyshards this SDBPlayer has.- Specified by:
getLuckyShardsFormatted
in interfaceSDBPlayer
- Returns:
- formatted string that represents the amount of luckyshards.
-
setLuckyShards
public void setLuckyShards(double luckyshards) Change the amount of luckyshards this SDBPlayer has.- Specified by:
setLuckyShards
in interfaceSDBPlayer
- Parameters:
luckyshards
- the new amount of luckyshards this player has.
-
getFitness
Get the fitness object of this SDBPlayer.- Specified by:
getFitness
in interfaceSDBPlayer
- Returns:
- the fitness object of this SDBPlayer.
-
setFitness
Change the fitness object of this SDBPlayer.- Specified by:
setFitness
in interfaceSDBPlayer
- Parameters:
fitness
- The new fitness object for this SDBPlayer.
-
getTimeSeconds
public int getTimeSeconds()Get the online seconds of this SDBPlayer.- Specified by:
getTimeSeconds
in interfaceSDBPlayer
- Returns:
- the amount of online seconds this SDBPlayer has.
-
setTimeSeconds
public void setTimeSeconds(int seconds) Change the online seconds of this SDBPlayer.- Specified by:
setTimeSeconds
in interfaceSDBPlayer
- Parameters:
seconds
- the new amount of online seconds for this SDBPlayer.
-
getTimeMinutes
public int getTimeMinutes()Get the online minutes of this SDBPlayer.- Specified by:
getTimeMinutes
in interfaceSDBPlayer
- Returns:
- the amount of online minutes this SDBPlayer has.
-
setTimeMinutes
public void setTimeMinutes(int minutes) Change the online minutes of this SDBPlayer.- Specified by:
setTimeMinutes
in interfaceSDBPlayer
- Parameters:
minutes
- the new amount of online minutes for this SDBPlayer.
-
getTimeHours
public int getTimeHours()Get the online hours of this SDBPlayer.- Specified by:
getTimeHours
in interfaceSDBPlayer
- Returns:
- the amount of online hours this SDBPlayer has.
-
setTimeHours
public void setTimeHours(int hours) Change the online hours of this SDBPlayer.- Specified by:
setTimeHours
in interfaceSDBPlayer
- Parameters:
hours
- the new amount of online hours for this SDBPlayer.
-
getTimeDays
public int getTimeDays()Get the online days of this SDBPlayer.- Specified by:
getTimeDays
in interfaceSDBPlayer
- Returns:
- the amount of online days this SDBPlayer has.
-
setTimeDays
public void setTimeDays(int days) Change the online days of this SDBPlayer.- Specified by:
setTimeDays
in interfaceSDBPlayer
- Parameters:
days
- the new amount of online days for this SDBPlayer.
-
setPrefixSilent
Change the prefix of this SDBPlayer without communicating it through message channels. Please useSDBPlayer.setPrefix(String)
instead.- Specified by:
setPrefixSilent
in interfaceSDBPlayer
- Parameters:
prefix
- New prefix of this SDBPlayer.
-
setPrefixColorSilent
Change the prefixcolor of this SDBPlayer without communicating it through message channels. Please useSDBPlayer.setPrefixColor(String)
instead.- Specified by:
setPrefixColorSilent
in interfaceSDBPlayer
- Parameters:
prefixcolor
- New prefixcolor of this SDBPlayer.
-
setSelectedChatColorSilent
Change the selected chatcolor of this SDBPlayer without communicating it through message channels.SDBPlayer.setSelectedChatColor(String)
- Specified by:
setSelectedChatColorSilent
in interfaceSDBPlayer
- Parameters:
selectedChatcolor
- New prefix of this SDBPlayer.
-
setCitycolorSilent
Change the citycolor of this SDBPlayer without communicating it through message channels. Please useSDBPlayer.setCitycolor(String)
instead.- Specified by:
setCitycolorSilent
in interfaceSDBPlayer
- Parameters:
citycolor
- the new citycolor of this SDBPlayer.
-
setLevelColorSilent
Change the levelcolor of this SDBPlayer without communicating it through message channels. Please useSDBPlayer.setLevelColor(String)
instead.- Specified by:
setLevelColorSilent
in interfaceSDBPlayer
- Parameters:
levelcolor
- the new levelcolor of this SDBPlayer.
-
setLevelSilent
public void setLevelSilent(int level) Change the level of this SDBPlayer without communicating it through message channels. Please useSDBPlayer.setLevel(int, LevelChangeReason)
instead.- Specified by:
setLevelSilent
in interfaceSDBPlayer
- Parameters:
level
- the new level of this player.
-
setChatSpySilent
public void setChatSpySilent(boolean chatspy) Enable or disable chatspy for this SDBPlayer without communicating it through message channels. Please useSDBPlayer.setChatSpy(boolean)
instead.- Specified by:
setChatSpySilent
in interfaceSDBPlayer
- Parameters:
chatspy
- True if player should have chatspy enabled, false if player shouldn't have it enabled.
-
setFitnessResetSilent
public void setFitnessResetSilent(boolean fitnessreset) Enable or disable a fitnessreset for this SDBPlayer without communicating it through message channels. Please useSDBPlayer.setFitnessResetSilent(boolean)
instead.- Specified by:
setFitnessResetSilent
in interfaceSDBPlayer
- Parameters:
fitnessreset
- True if player should have a pending fitnessreset, false if player shouldn't have one.s
-
setCommandSpySilent
public void setCommandSpySilent(boolean commandspy) Enable or disable commandspy for this SDBPlayer without communicating it through message channels. Please useSDBPlayer.setCommandSpy(boolean)
instead.- Specified by:
setCommandSpySilent
in interfaceSDBPlayer
- Parameters:
commandspy
- True if player should have commandspy enabled, false if player shouldn't have it enabled.
-
muteStaffChatSilent
public void muteStaffChatSilent(boolean muted) Mute or unmute staffchat for this SDBPlayer without communicating it through message channels. Please useSDBPlayer.muteStaffChat(boolean)
instead.- Specified by:
muteStaffChatSilent
in interfaceSDBPlayer
- Parameters:
muted
- True if player should have staffchat muted, false if player shouldn't have it muted.
-
setGrayCoinsSilent
public void setGrayCoinsSilent(int graycoins) Change the amount of grayoincs this SDBPlayer has without communicating it through message channels. Please useSDBPlayer.setGrayCoins(int)
instead.- Specified by:
setGrayCoinsSilent
in interfaceSDBPlayer
- Parameters:
graycoins
- the new amount of graycoins this player has.
-
setGoldShardsSilent
public void setGoldShardsSilent(double goldshards) Change the amount of goldshards this SDBPlayer has without communicating it through message channels. Please useSDBPlayer.setGoldShards(double)
instead.- Specified by:
setGoldShardsSilent
in interfaceSDBPlayer
- Parameters:
goldshards
- the new amount of goldshards this player has.
-
setLuckyShardsSilent
public void setLuckyShardsSilent(double luckyshards) Change the amount of luckyshards this SDBPlayer has without communicating it through message channels. Please useSDBPlayer.setLuckyShards(double)
instead.- Specified by:
setLuckyShardsSilent
in interfaceSDBPlayer
- Parameters:
luckyshards
- the new amount of luckyshards this player has.
-
setGrayShardsSilent
public void setGrayShardsSilent(double grayshards) Change the amount of grayshards this SDBPlayer has without communicating it through message channels. Please useSDBPlayer.setGrayShards(double)
instead.- Specified by:
setGrayShardsSilent
in interfaceSDBPlayer
- Parameters:
grayshards
- the new amount of grayshards this player has.
-
setTimeSecondsSilent
public void setTimeSecondsSilent(int seconds) Change the online seconds of this SDBPlayer without communicating it through message channels. Please useSDBPlayer.setTimeHours(int)
instead.- Specified by:
setTimeSecondsSilent
in interfaceSDBPlayer
- Parameters:
seconds
- the new amount of online seconds for this SDBPlayer.
-
setTimeMinutesSilent
public void setTimeMinutesSilent(int minutes) Change the online minutes of this SDBPlayer without communicating it through message channels. Please useSDBPlayer.setTimeHours(int)
instead.- Specified by:
setTimeMinutesSilent
in interfaceSDBPlayer
- Parameters:
minutes
- the new amount of online minutes for this SDBPlayer.
-
setTimeHoursSilent
public void setTimeHoursSilent(int hours) Change the online hours of this SDBPlayer without communicating it through message channels. Please useSDBPlayer.setTimeHours(int)
instead.- Specified by:
setTimeHoursSilent
in interfaceSDBPlayer
- Parameters:
hours
- the new amount of online hours for this SDBPlayer.
-
setTimeDaysSilent
public void setTimeDaysSilent(int days) Change the online days of this SDBPlayer without communicating it through message channels. Please useSDBPlayer.setTimeDays(int)
instead.- Specified by:
setTimeDaysSilent
in interfaceSDBPlayer
- Parameters:
days
- the new amount of online days for this SDBPlayer.
-
getDeathbanTime
public long getDeathbanTime()The value ofSystem.currentTimeMillis()
when the deathban of this SDBPlayer expires. Returns -1 when player is not deathbanned.- Specified by:
getDeathbanTime
in interfaceSDBPlayer
- Returns:
- the value of
System.currentTimeMillis()
when deathban expires.
-
setDeathbanTime
public void setDeathbanTime(long deathbanmillis) Change until what value ofSystem.currentTimeMillis()
the deathban of this SDBPlayer expires. Change toSystem.currentTimeMillis()
to unban this player.- Specified by:
setDeathbanTime
in interfaceSDBPlayer
- Parameters:
deathbanmillis
- new value ofSystem.currentTimeMillis()
when this SDBPlayer gets unbanned.
-
setDeathbanTimeSilent
public void setDeathbanTimeSilent(long deathbanmillis) Change until what value ofSystem.currentTimeMillis()
the deathban of this SDBPlayer expires without communicating it through message channels. Change toSystem.currentTimeMillis()
to unban this player.- Specified by:
setDeathbanTimeSilent
in interfaceSDBPlayer
- Parameters:
deathbanmillis
- new value ofSystem.currentTimeMillis()
when this SDBPlayer gets unbanned.
-
updateFitnessEffects
public void updateFitnessEffects() -
handcuffPlayer
Handcuff a player.- Specified by:
handcuffPlayer
in interfaceSDBPlayer
- Parameters:
handcuffedBy
- UUID of player who handcuffed this player
-
unhandcuffPlayer
public void unhandcuffPlayer()Remove the handcuffs from a player.- Specified by:
unhandcuffPlayer
in interfaceSDBPlayer
-
getHandcuffedBy
Get the possibly null UUID of the player who handcuffed this SDBPlayer.- Specified by:
getHandcuffedBy
in interfaceSDBPlayer
- Returns:
- UUID of player who handcuffed this player
-
addHandcuffEffects
public void addHandcuffEffects()Add the configurable handcuff effects. -
removeHandcuffEffects
public void removeHandcuffEffects()Remove the configurable handcuff effects if this player has any. -
isHandCuffed
public boolean isHandCuffed()Check if player is handcuffed.- Specified by:
isHandCuffed
in interfaceSDBPlayer
- Returns:
- true if player is handcuffed.
-
getTemperature
public double getTemperature()Get the temperature at the location of this player- Returns:
- temperature
-
updateScoreboard
public void updateScoreboard()Update the scoreboard for this player -
setFrozenUntil
public void setFrozenUntil(long frozenUntil) Freeze the player until the provided epoch time. Freezing isn't synced across servers because average freeze duration is just a few seconds.- Parameters:
frozenUntil
- epoch time in milliseconds
-
getFrozenUntil
public long getFrozenUntil()Get the time that the freeze expires (or -1 when player isn't frozen)- Returns:
- epoch time in milliseconds
-
reset
public void reset()Reset the MinetopiaSDB playerdata of this player, this does not includes fitnessdata.
-