Open bobhenl opened 6 months ago
Hello, Thanks for the issue.
Yes, it is required that double-jump work with a fly. Currently, this is the only way to make a double jump in Minecraft.
How would the solution work, because I don't fully understand? When the player uses double jump, does the plugin execute the command for him?
Regards.
when you fly, it costs you energy that you recharge (in CMI), and when players jump, it cost them energy too due to this. So maybe if we can add commands on jump that could be set in config, we can disable their fly recharge mode so it won't cost them energy.
So like if you can add: commandsOnJump or something could help
I think this is not a very good solution (performance). The only good solution is to use double jump API. More information about its implementation can be found on the project's main page.
Wouldn't it be the same as spawning particle or making sound on doublejump?
Or maybe the command on strikes? Like when it's 1st strike, we could add own commands, etc... then I could add this there
Ok, there will be an update with what you propose in the next few days. It will work on the principle that when the player uses a double jump, according to the configuration, the plugin will execute this command for him. Do I understand your suggestion correctly? Let me know.
Yes, may if you want you can implement it for strikes, as well, like we can set various commands for various strikes, and give player rewards, for example when they strike is 25, we could execute some cmd and give them reward.
But yeah, the mentioned solution would be helpful enough, just maybe if you let it work with strikes and I can execute the cmd just on the 1st strike, it will save some performance
So like:
commandsOnStrikes:
every: # cmd on every strike, or under separate configuration
- ....
1:
- fly %player% false -s
25:
- give %player% ...
or just like:
commandsOnJump:
- ...
but I think the first variant could be more utilized
Describe the bug Hi, does double jump need to work with fly? As now when players double jump on spawn and they have bought flying in CMI using /recharge (for XP or money) and then used /flyc, then when they use double jump it cost them the recharged fly.
Aka Double jumping when /flyc is enabled uses the energy up when you jump
How do you trigger it? Use CMI plugin, and recharge fly using /recharge, then use /flyc, and then when you fly it costs you energy. Then try to jump and it costs you energy as well
Server version [17:26:29 INFO]: Current: git-Purpur-2165 (MC: 1.20.4)* Previous: git-Purpur-2159 (MC: 1.20.4)
Plugin version [17:26:49 INFO]: DoubleJump version 2.1.4
Plugin configuration
Possible solution: may you add a way to trigger command when a player jumps so we can disable their flyc mode This would be probably the best solution so you won't need to hook into the cmi to fix it