Zrips / CMI

117 stars 99 forks source link

incompatibiliy between JetsAntiAfkPro and new async teleport system from CMI #8622

Closed HamtaBot closed 7 months ago

HamtaBot commented 7 months ago

Description of Issue

since those lasts updates, when using /home command, afk counter from jetsantiafkpro is not reseted anymore making players being able to bypass the afk time limit by just waiting to reach it and then teleport jets anti afk pro has a feature which make count reset when players type in chat or enter commands it works for everything except cmi teleports command such as home command

Version Information

cmi version
[20:29:25 INFO]: --------------------------------------------------
[20:29:25 INFO]: CMI: 9.7.0.4 MySQL
[20:29:25 INFO]: CMILib: 1.4.6.1 
[20:29:25 INFO]: Server: Paper 1.20.1-R0.1-SNAPSHOT-
[20:29:25 INFO]: CMI economy: Activé Vault: 1.7.3-b CMI Chat: Désactivé 
[20:29:25 INFO]: Modules -> 17 enabled 42 disabled: spawnerProximity, cuffed, mirror, tablist, moneyCheque, noTarget, elytraBoost, eventCommands, rideAnimation, elytraLaunch, bossBarCompass, coloredArmor, chatBubble, playerCombat, votifier, shulkerBackpack, cooldown, headDrop, spawnerCharge, namePlates, timedCommands, homeInteractions, hpBossBar, launchPad, armorstand, elytraExploit, portals, anvilRenameColor, spawners, paintingEditor, dynamicSigns, playerChatTag, durabilityLoss, flightCharge, deathMessages, schedule, disabledEnchants, worldLimitsElytra, ranks, sitAnimation, warmup, totemBehavior

Errors

No response

Relevant Config Sections

No response

Relevant Plugins

1.7.3

Agreements

Zrips commented 7 months ago

Command itself isint being performed in async, commands on its own did not received any changes in recent updates and in general commands are not being canceled. So this should not have any effect on plugin not dragging out player out of afk. From which version you updated? Was it big jump in version or just to the latest 9.7.0.0+ version which started to cause this issue?

HamtaBot commented 7 months ago

it was a big jump since i saw all the news things for folia and was waiting everything to be stable , it started since 9.7.0.1 which mean maybe jetsantiafkpro is using the deprected version of CMIAsyncPlayerTEleportEvent i'll ask him to see if its that

Zrips commented 7 months ago

Well there is no real need to have such direct integrations, regular player teleport event should do the trick. CMI uses basic teleport event to drag players out of afk mode and it works as expected with latest versions. So hard to say exactly what's going on and why its not working as it should.

HamtaBot commented 7 months ago

Jetsantiafkpro doesn’t rely on afk module form CMI it’s a complete other plugin that was made to get more functions that the one from CMi

HamtaBot commented 7 months ago

we found out with jets its from his plugin, he made some change that broke everything , sorry for the issue