summaryrefslogtreecommitdiffstats
path: root/Server/Plugins/APIDump
diff options
context:
space:
mode:
authorJK2K <ikuba03@gmail.com>2021-10-02 22:28:24 +0200
committerGitHub <noreply@github.com>2021-10-02 22:28:24 +0200
commitbe3111d133cf01fe266d1e267acdb9f22f98f513 (patch)
treeb79806cb1443d6767e837f26ec9a815ec852dab3 /Server/Plugins/APIDump
parentAuthentication flow: move construction, slim down classes (#5312) (diff)
downloadcuberite-be3111d133cf01fe266d1e267acdb9f22f98f513.tar
cuberite-be3111d133cf01fe266d1e267acdb9f22f98f513.tar.gz
cuberite-be3111d133cf01fe266d1e267acdb9f22f98f513.tar.bz2
cuberite-be3111d133cf01fe266d1e267acdb9f22f98f513.tar.lz
cuberite-be3111d133cf01fe266d1e267acdb9f22f98f513.tar.xz
cuberite-be3111d133cf01fe266d1e267acdb9f22f98f513.tar.zst
cuberite-be3111d133cf01fe266d1e267acdb9f22f98f513.zip
Diffstat (limited to '')
-rw-r--r--Server/Plugins/APIDump/APIDesc.lua28
1 files changed, 26 insertions, 2 deletions
diff --git a/Server/Plugins/APIDump/APIDesc.lua b/Server/Plugins/APIDump/APIDesc.lua
index 2f1d66648..db06612d9 100644
--- a/Server/Plugins/APIDump/APIDesc.lua
+++ b/Server/Plugins/APIDump/APIDesc.lua
@@ -10463,7 +10463,7 @@ a_Player:OpenWindow(Window);
Type = "Vector3i",
},
},
- Notes = "Returns the position of the last bed the player has slept in, or the world's spawn if no such position was recorded.",
+ Notes = "Returns the player's respawn position. The player is guaranteed to respawn from death here if {{cPlayer}}:IsRespawnPointForced is true or if a bed exists at this position.",
},
GetMaxSpeed =
{
@@ -10827,6 +10827,15 @@ a_Player:OpenWindow(Window);
},
Notes = "Returns true if the player's left hand is dominant.",
},
+ IsRespawnPointForced = {
+ Returns =
+ {
+ {
+ Type = "boolean",
+ },
+ },
+ Notes = "Returns true if the player unconditionally respawns from death at the position given by {{cPlayer}}:GetLastBedPos with no bed checks performed.",
+ },
IsSatiated =
{
Returns =
@@ -11098,7 +11107,7 @@ a_Player:OpenWindow(Window);
IsOptional = true,
},
},
- Notes = "Sets the position and world of the player's respawn point, which is also known as the bed position. The player will respawn at this position and world upon death. If the world is not specified, it is set to the player's current world.",
+ Notes = "Sets the position and world of the player's bed. If the world is not specified, it is set to the player's current world. The player will respawn at this position and world upon death if there is a bed there.",
},
SetCanFly =
{
@@ -11298,6 +11307,21 @@ a_Player:OpenWindow(Window);
},
Notes = "Sets the normal (walking) maximum speed, relative to the game default speed. The default value is 1. Sends the updated speed to the client, if appropriate.",
},
+ SetRespawnPosition =
+ {
+ Params =
+ {
+ {
+ Name = "Position",
+ Type = "Vector3i",
+ },
+ {
+ Name = "World",
+ Type = "cWorld",
+ },
+ },
+ Notes = "Sets the position and world of the player's respawn point. The player will respawn at this position and world upon death.",
+ },
SetSprint =
{
Params =