- Thread starter
- #1
Hi everyone, a new update just went live during scheduled restart. These are the items that have been updated:
Update
Updated to 1.18.2
Updated all plugins to their latest 1.18.2 versions.
Misc
Checkpoint join signs now show your completion info for the map on left click. Joining can still be done with right click.
Scripts
The Player type has received a number of new methods:
Update
Updated to 1.18.2
Updated all plugins to their latest 1.18.2 versions.
Misc
Checkpoint join signs now show your completion info for the map on left click. Joining can still be done with right click.
Scripts
The Player type has received a number of new methods:
"Gets the blockface of the block that the living entity has likely clicked, ignoring fluids. Null if no block is targeted within 5 blocks distance. Identical to getTargetBlockFace(5)."
String getClickedBlockFace()
"Gets the blockface of that block that the living entity has targeted, ignoring fluids. Null if no block is targeted within distance."
String getTargetBlockFace(Int distance)
"Gets the block that the living entity has targeted, ignoring fluids. Null if no block is targeted within distance."
Block getTargetBlock(Int distance)
"Gets the entity being targeted. Null if no entity is targeted within distance."
Entity getTargetEntity(Int distance)
"Returns whether gravity applies to this entity."
Boolean hasGravity()
"Sets whether gravity applies to this entity. (Please unset this when you are done )"
Void setGravity(Boolean gravity)
"Checks to see if an entity is gliding, such as using an Elytra."
Boolean isGliding()
"Returns the type of weather the player is currently experiencing."
String getPlayerWeather()
"Sets the type of weather the player will see. When used, the weather status of the player is locked until resetPlayerWeather() is used."
Void setPlayerWeather(String weather)
"Restores the normal condition where the player's weather is controlled by server conditions."
Void resetPlayerWeather()
"Returns the player's current timestamp."
Long getPlayerTime()
"Returns the player's current time offset relative to server time, or the current player's fixed time if the player's time is absolute."
Long getPlayerTimeOffset()
"Sets the current time on the player's client. When using non relative time the player's time will stay fixed at the specified time parameter. It's up to the caller to continue updating the player's time. To restore player time to normal use resetPlayerTime()."
Void setPlayerTime(Long time, Boolean serverRelative)
"Restores the normal condition where the player's time is synchronized with the server time. "
Void resetPlayerTime()
"Make the entity drop the item in their hand. This will force the entity to drop the item they are holding with an option to drop the entire ItemStack or just 1 of the items."
Boolean dropItem(Boolean dropAll)