https://pastebin.com/56BHbmvF
Special Thanks to xXPro99Xx, without his help with this code, it wouldn't be possible. Make sure to drop him a simple "thanks" if you plan to use this.
NOTE: In order to fit the code into your server's map, make sure to edit any coordinates with the placeholder '"100" to whatever you need it to be to fit your map, otherwise it won't work. (You need a bit of madcommand knowledge).
[NOTE] This is a repost! The original was taken down to work on bug fixes.
Special Thanks to xXPro99Xx, without his help with this code, it wouldn't be possible. Make sure to drop him a simple "thanks" if you plan to use this.
NOTE: In order to fit the code into your server's map, make sure to edit any coordinates with the placeholder '"100" to whatever you need it to be to fit your map, otherwise it won't work. (You need a bit of madcommand knowledge).
[NOTE] This is a repost! The original was taken down to work on bug fixes.