Worldborder/Elytra issue fix-skript

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Joibjorn

Member
Aug 1, 2017
4
0
0
36
What I want:
For servers having WorldBorder plugin combined with any other Elytraplugin that gives extended flight, have or will have issues with players flying into their deaths when hitting the world border.
For those who are unfamiliar with the WorldBorder plugin, it gives you a knockback effect when hitting the border, and you fall into your death.
I am looking for some smart way to cancel the damage given when hitting the wall whilst flying, but i need help getting started. I am novice at skripting, but having trouble getting started.
Perhaps a loop that checks if a player is flying, and setting a tag on them, and a simple skript like this:

code_language.skript:
on damage:
    victim is {elytra::%loop-player%}:
            victim is flying:
        cancel event

Although, i am afraid of putting strain on my server, and also afraid of accidentally creating immortality with elytras
[doublepost=1503081026,1502785899][/doublepost]No-one?