Updated TempFly hook to TempFly 3.0 compliance.#67
Updated TempFly hook to TempFly 3.0 compliance.#67ChiefMoneyBags wants to merge 1 commit intoArcanePlugins:masterfrom
Conversation
| log(LogLevel.INFO, "&8[&71/5&8] &7Checking compatibility..."); | ||
| checkCompatibility(); | ||
| if (Bukkit.getPluginManager().getPlugin("TempFly") != null) { | ||
| try {tempflyRequirement = new TempFlyRequirement();} catch (Exception e) {} |
There was a problem hiding this comment.
I put this in a try block as it will error with old TempFly versions that do not contain requirement provider. I didn't factor in their support as it was bugged anyway. You can add a message here in console to update TempFly to latest version for support.
| public void exitCombat(Player p) { | ||
| TempFly.getAPI().getUser(p).submitFlightResult(new ResultAllow(this, RequirementProvider.InquiryType.OUT_OF_SCOPE, V.requirePassCombat)); | ||
| } | ||
|
|
There was a problem hiding this comment.
You can control the fall damage and chat messages in the ResultDeny and ResultAllow constructors if you want.
|
Thank you very much @ChiefMoneyBags for submitting the PR and giving PoeticRainbow a fixed version - highly appreciated! I am currently working on a complete overhaul to this plugin, so all of the old code currently sitting in this repo has been scrapped. Have a great day :) |
|
Thanks for your response. The code in that phantom combat fix isn't compatible with the version of TempFly currently on spigot, i gave PoeticRainbow a beta jar to use with the fix. I am hoping to release my update soon. I will let you know when i'm ready for that to be posted, perhaps i can get it out tomorrow if i have enough time. |
|
You can go ahead and post a resource update with the version i linked. |
|
Too good! |
|
I'll reopen this since I will need to implement this into the current code. ;) |
Fixes the incompatibility issue with TempFly using its new requirement provider api. TempFly 3.0 will be released on spigot within the next few days.