Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AFK timer still not automatically kicking people (after recent patch) #9368

Open
3 tasks done
hotspuraz opened this issue Dec 20, 2024 · 5 comments
Open
3 tasks done
Labels
bug report Reports of bugs/inconsistencies

Comments

@hotspuraz
Copy link

Description of Issue

Seems like the same issue is still occurring

Version Information

--------------------------------------------------
CMI: 9.7.7.10 SqLite-> 9.7.8.2
CMILib: 1.5.2.2 -> 1.5.2.5
Server: Pufferfish(15) 1.21.1-R0.1-SNAPSHOT-
CMI economy: Enabled Vault: 1.7.3-CMI(CMIEInjector) CMI Chat: Enabled 
Modules -> 48 enabled 19 disabled: spawnerProximity, hpBossBar, tablist, armorstand, moneyCheque, portals, holograms, elytraBoost, spawners, dynamicSigns, rideAnimation, elytraLaunch, bossBarCompass, flightCharge, ranks, votifier, sitAnimation, spawnerCharge, vanish
--------------------------------------------------

Errors

None

Relevant Config Sections

:
  Enabled: true
  TitleMessage: true
  SubTitleMessage: true
  PreventJumping: true
  PreventDamage: true
  CheckInterval: 10
  StopPlayTime: true
  AutoAfkIn: 600
  AutoAfkCmds:
  - cmi sound entity_villager_no %player_name%
  ManualAfkCmds:
  - cmi sound entity_villager_no %player_name%
  LeaveCmds:
    Manual:
    - ''
    Auto:
    - ''
kicked after AutoAfkIn+AutoKickIn seconds
node where bigger value takes priority
  AutoKickIn: 900

Relevant Plugins

No response

Agreements

  • My server is supported by CMI.
  • My version of CMI at the time of this report is up to date.
  • I have searched the github and asked around before making this report.
@hotspuraz hotspuraz added the bug report Reports of bugs/inconsistencies label Dec 20, 2024
@Zrips
Copy link
Owner

Zrips commented Dec 29, 2024

What do you have set for AutoKickCmds section? Entire file would be best to have best way in debugging why it doesn't work for you. If you have set some sort of kick command under AutoKickCmds section, try testing it by changing it to something different, like 'cmi msg [playerName] You got auto kicked' or anything similar to test out if this gets triggered for you in general. Keep in mind that player with cmi.command.afk.kickbypass will not be kicked out, so make sure that they don't have access to this permission node

@hotspuraz
Copy link
Author

Config without the comments:

Afk:
  Enabled: true
  TitleMessage: true
  SubTitleMessage: true
  PreventJumping: true
  PreventDamage: true
  CheckInterval: 10
  StopPlayTime: true
  AutoAfkIn: 600
  AutoAfkCmds:
  - cmi sound entity_villager_no %player_name%
  ManualAfkCmds:
  - cmi sound entity_villager_no %player_name%
  LeaveCmds:
    Manual:
    - ''
    Auto:
    - ''
  AutoKickIn: 900
  RepeatingAutoKickInterval: 300
  RepeatKickCommand: false
  AutoKickCmds:
  - cmi kick [playerName] &bYou have been kicked for idling more than [time] -s
  DisabledWorlds:
  - oneTestWorld
  - secondTestWorld
  DisableOnInteract: true
  SmartInteractCheck: true
  AntiAfkMachines: true
  PreventHook: true
  PreventPushing: false
  DisableOnInventoryClick: false
  DisableOnitemDrop: false
  DisableOnCommand: false
  DisableOnPublicChat: true
  DisableOnPrivateChat: false
  DisableOnMove: true
  DisableOnLookAround: false
  DisableOnFishing: false
  DisableItemPickup: false
  PreventMobSpawning:
    Enabled: false
    Natural: false
    Spawners: true
    VillageDefence: true
  DisableExpPickup: false

@hotspuraz
Copy link
Author

I have used this same config since 2020, If it's broken then it's because something in CMI has changed, I haven't touched it

@Zrips
Copy link
Owner

Zrips commented Dec 29, 2024

Check permission access to cmi.command.afk.kickbypass, you can use cmi command, for example /cmi haspermission Zhax cmi.command.afk.kickbypass which should produce result like
image

@hotspuraz
Copy link
Author

Screenshot 2024-12-29 135001

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Reports of bugs/inconsistencies
Projects
None yet
Development

No branches or pull requests

2 participants