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

Bypassing AFK with smash attack on Mace #9528

Closed
3 tasks done
bobhenl opened this issue Mar 7, 2025 · 1 comment
Closed
3 tasks done

Bypassing AFK with smash attack on Mace #9528

bobhenl opened this issue Mar 7, 2025 · 1 comment
Labels
bug report Reports of bugs/inconsistencies

Comments

@bobhenl
Copy link

bobhenl commented Mar 7, 2025

Description of Issue

Hello, when you use Smash attack (jump from the high) & attack some mob near player (like some animal), his AFK gets cancelled due to knockback effect that's made.

Version Information

[16:37:42 INFO]: --------------------------------------------------
[16:37:42 INFO]: CMI: 9.7.10.0 SqLite-> 9.7.10.2
[16:37:42 INFO]: CMILib: 1.5.3.4 -> 1.5.3.5
[16:37:42 INFO]: Server: Purpur(2403) 1.21.4-R0.1-SNAPSHOT-
[16:37:42 INFO]: CMI economy: Enabled Vault: 1.7.3-CMI CMI Chat: Disabled 
[16:37:42 INFO]: Modules -> 54 enabled 13 disabled: customMessages, mirror, tablist, skin, playerChatTag, disabledEnchants, chatBubble, ranks, firstJoinMessages, playerCombat, votifier, sitAnimation, namePlates
[16:37:42 INFO]: --------------------------------------------------

Errors

Relevant Config Sections

Afk:
  # Enable or disable auto afk system entirely
  Enabled: true
  # When enabled shows title message informing that player is in afk mode
  TitleMessage: true
  # When enabled shows random subtitle message
  SubTitleMessage: true
  # Prevents jumping in one place to avoid afk status
  PreventJumping: true
  # Prevents damage to player who is afk
  PreventDamage: true
  # Prevents damage to mobs from player who is afk
  PreventMobDamage: true
  # Defines how often in seconds plugin will check for afk players state
  CheckInterval: 10
  # When set to true, players playtime counter stops
  # As of nature how this system works you can see +-1second jumping up and down while checking players playtime
  StopPlayTime: true
  # Defines how long to wait after player stops moving to set him as afk
  # Player needs to have cmi.command.afk.auto permission node
  # Set to 0 if you want to disable it
  AutoAfkIn: 300
  # Defines commands to be performed when player enters afk mode automatically while addling
  # Supports specialized commands
  AutoAfkCmds:
  - cmi broadcast !&6[playerDisplayName] &eis now AFK
  # Defines commands to be performed when player enters /cmi afk
  # Supports specialized commands
  ManualAfkCmds:
  - cmi broadcast !&6[playerDisplayName] &eis now AFK
  LeaveCmds:
    # Defines commands to be performed when player leaves afk mode after he entered it manually
    Manual:
    - cmi broadcast !&6[playerDisplayName] &eis no longer AFK
    # Defines commands to be performed when player leaves afk mode after he entered it automatically
    Auto:
    - cmi broadcast !&6[playerDisplayName] &eis no longer AFK
  AutoKickTimes:
    # Defines how long to wait after player stops moving to kick player
    # This is additional timer to AutoAfkIn and in case player entered afk mode manually he will get kicked after AutoAfkIn+AutoKickIn seconds
    # This can be used not only to kick but to perform repeating action every x seconds if needed
    # Keep it at -1 to disable auto kick
    # Can be bypassed with cmi.command.afk.kickbypass permission node
    # Additionally players kick time can be changed with cmi.command.afk.kickOutIn.[seconds] permission node where bigger value takes priority
    Default: -1
    # List of autoKick times based by online player count ([playerCount]-[seconds])
    # This only aplies if default kick time is set to more than -1
    # This will pick closest timer (in seconds) from provided list going down. For example having entries as 30-400 and 40-350 while having 35 online players we will use value of 400 seconds
    # Keep in mind that kick out timer is picked at the moment player enters afk mode and isint being rechecked during afk mode even if player count changes during that time
    # If we cant determine correct value then default one will be used
    ByPlayerCount:
    - 10-600
    - 20-500
    - 30-400
    - 40-350
    - 50-300
  # This will define how long to wait before performing kick commands again
  RepeatingAutoKickInterval: 300
  # When set to true, kick command will be repeated each RepeatingAutoKickInterval seconds
  RepeatKickCommand: false
  # Defines commands to be performed when player can be kicked
  # If player is not kicked then commands will be repeated every RepeatingAutoKickInterval seconds
  AutoKickCmds:
  - cmi kick [playerName] &eYou have been kicked for idling more than [time]
  # Defines worlds where players will not be placed into afk mode after they idled for defined time
  DisabledWorlds:
  - oneTestWorld
  - secondTestWorld
  # Disables afk on interaction
  DisableOnInteract: true
  # Prevents player from going bypassing afk mode while continuously holding one button with particular items or on particular blocks
  SmartInteractCheck: true
  # Prevents from players abusing afk by constantly moving in afk machine
  AntiAfkMachines: true
  # Prevents players from being  pooled around while player is in afk mode
  PreventHook: true
  # EXPERIMENTAL! Prevents players from being pushed around while player is in afk mode
  # Keep in mind that player can still be moved around the same block he is in
  PreventPushing: true
  # Disables afk on inventory click
  DisableOnInventoryClick: false
  # Disables afk on item drop
  DisableOnitemDrop: false
  # Disables afk on command usage
  DisableOnCommand: true
  # Disables afk on public chat message
  DisableOnPublicChat: true
  # Disables afk on private chat message
  DisableOnPrivateChat: true
  # Disables afk on move
  DisableOnMove: true
  # Disables afk on camera movement
  DisableOnLookAround: false
  # Disables afk on fishing when you catch fish
  DisableOnFishing: false
  # Disables item pickup while afk
  DisableItemPickup: false
  PreventMobSpawning:
    # When enabled we can prevent mob spawning near players who are afk
    Enabled: true
    # Prevents natural mob spawning
    # This can be more on heavy side of the server as it will try constantly to spawn in monsters near afk players
    Natural: true
    # Prevent mob spawning from spawners
    Spawners: true
    # Usually responsible for spawning in iron golems
    VillageDefence: true
  # Disables exp pickup while afk
  # Attention! Because of weird minecraft handling of exp orbs, best way is to set orb to 0exp and allow it to be obsorbed
  # So by enabling this exp obsorbed by afk players will have no effect
  DisableExpPickup: false

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.
@bobhenl bobhenl added the bug report Reports of bugs/inconsistencies label Mar 7, 2025
@Zrips
Copy link
Owner

Zrips commented Mar 25, 2025

Should be resolved with next update

@Zrips Zrips closed this as completed Mar 25, 2025
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