CodedRed-Spigot / PlayTimes

The best /playtime plugin! PAPI support, offline checks, API & more!
https://www.spigotmc.org/resources/playtimes-check-players-playtime-server-uptime.58858/
GNU General Public License v3.0
10 stars 13 forks source link

I'm linking PlayTimes to Skript, but I need help #53

Closed ef1m03 closed 3 months ago

ef1m03 commented 5 months ago

my code in Skript

on block place: set {_timePlayed} to getPlayTime() if {_timePlayed} < 10: set {_spawn} to location of world's spawn if distance between event-location and {_spawn} < 256: cancel event send "&cYou cannot destroy blocks within the spawn protection radius for up to 10 hours of game time!" to the player

on block break: set {_timePlayed} to getPlayTime() if {_timePlayed} < 10: set {_spawn} to location of world's spawn if distance between event-location and {_spawn} < 256: cancel event send "&cYou cannot destroy blocks within the spawn protection radius for up to 10 hours of game time!" to the player

ERROR in game: image

How should I replace my code on lines 4 and 14? set {_timePlayed} to getPlayTime()

CodedRedGIT commented 3 months ago

PlayTimes is not a script. I can look into adding support for this. Thank you for the report.