From 9210501af5ab0b91e331e9b4d27ac7fd63888f48 Mon Sep 17 00:00:00 2001 From: Alexander Harkness Date: Tue, 31 Mar 2020 11:39:23 +0000 Subject: Prevent player from being destroyed by plugins (#4584) * Prevent player from being destroyed by plugins Add manual binding, bails out with error message if attempted entity to destroy is player. * Improve warnings and documentation, remove automatic binding * Remove old and unnecessary deprecated function --- Server/Plugins/APIDump/APIDesc.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Server') diff --git a/Server/Plugins/APIDump/APIDesc.lua b/Server/Plugins/APIDump/APIDesc.lua index 88ab8c5ba..8adda34a7 100644 --- a/Server/Plugins/APIDump/APIDesc.lua +++ b/Server/Plugins/APIDump/APIDesc.lua @@ -3138,12 +3138,12 @@ local Hash = cCryptoHash.sha1HexString("DataToHash") Params = { { - Name = "ShouldBroadcast", + Name = "ShouldBroadcast (DEPRECATED)", Type = "boolean", IsOptional = true, }, }, - Notes = "Schedules the entity to be destroyed; if ShouldBroadcast is not present or set to true, broadcasts the DestroyEntity packet", + Notes = "Schedules the entity to be destroyed; broadcasts the DestroyEntity packet", }, DoesPreventBlockPlacement = { -- cgit v1.2.3