btk5h / skript-db

MIT License
5 stars 5 forks source link

Can't be used in a function #5

Closed Diamax10 closed 6 years ago

Diamax10 commented 6 years ago

We can't use execute effect in a Skript's return function because it sees effect like a delay

A return statement after a delay is useless, as the calling trigger will resume when the delay starts
btk5h commented 6 years ago

Use this addon with skript-mirror's delayed custom effects. On Wed, Jan 24, 2018 at 11:18 AM Diamax10 notifications@github.com wrote:

We can't use execute effect in a Skript's return function because it sees effect like a delay

A return statement after a delay is useless, as the calling trigger will resume when the delay starts

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/btk5h/skript-db/issues/5, or mute the thread https://github.com/notifications/unsubscribe-auth/AC82JPoTFRJ0RCM0Iz2nNXHav9AvBlM4ks5tN4HrgaJpZM4Rrxp9 .

Pikachu920 commented 6 years ago

that's because it is a delay. If skript-db didnt act the way it does, it would lag your server every time you ran a request. skript-mirror's custom syntax are a great fix for this

Diamax10 commented 6 years ago

Yeah, I will try that ;) thanks