Closed Ducki0210 closed 1 year ago
Hi, may I know do the player has the permission to access spooderman suit?
As the owner of the server, I have every single permission but just in case, I also gave myself the permission and it does not change anything
Ohh I think I just figured it out, I tried the same code in a command and it does work so it would be a problem only related to the PlayerJoinEvent as something from the API must not have been initialized already
I delayed it from 1 tick and it works, sorry to have bothered and thank you for your attention ^^
You can try use a delay thread when equip the cosmetics. As GadgetsMenu will sync cosmetics when player join, it can have conflict when both plugin is calling the equip cosmetic method.
Describe the bug I recently used the API in order to automatically equip the SpooderMan suit when a player joins the server but it seems that using the API to such purpose does everything right except from using the ability of the suit.
So I only tried with the suit I just mentioned before, the cobwebs are thrown well and yet they only bounce against the wall they hurt without even moving the player.
To Reproduce Steps to reproduce the behavior:
PlayerManager playerManager = GadgetsMenuAPI.getPlayerManager(player);
if (playerManager != null) playerManager.equipSuit(SuitType.SPOODERMAN);
Expected behavior A normal suit ability behaviour
Further Information (please complete the following information):
Screenshots https://youtu.be/SAnTbpE_cxQ
Additional Information Hope you can solve it ASAP :)