Hi,
i am not overly experienced with Sk-Reflect and need some help with the CoreProtect API.
What i am trying to do: Check if a block is natural or not / if it has been placed by a player.
Saving it in Skript-variables is because of performance reasons not an option - i want to use the logged CP-Blocks.
Thats the link to the API: https://docs.coreprotect.net/api/
[Skript 2.6-beta3, SKReflect, MC 1.17.1]
i am not overly experienced with Sk-Reflect and need some help with the CoreProtect API.
What i am trying to do: Check if a block is natural or not / if it has been placed by a player.
Code:
import:
org.bukkit.Bukkit
net.coreprotect.CoreProtect
net.coreprotect.CoreProtectAPI
org.bukkit.entity.Player
on break:
set {_t} to CoreProtectAPI.hasPlaced(player, event-location, 10000, 0)
broadcast "%{_t}%"
set {_s::*} to CoreProtectAPI.performLookup(600, null, null, null, null, null, 5, event-location)
broadcast "%{_s::*}%"
Saving it in Skript-variables is because of performance reasons not an option - i want to use the logged CP-Blocks.
Thats the link to the API: https://docs.coreprotect.net/api/
[Skript 2.6-beta3, SKReflect, MC 1.17.1]
Last edited: