Zrips / CMI

117 stars 99 forks source link

Jail bossbar for one secound when leavingnafk - reason: config - jail - noAfk true #4492

Closed CloudeLecaw closed 3 years ago

CloudeLecaw commented 4 years ago

Since last cmi Update 8.7.9.3 we get a meassage in bossbar that tells us we were jailed for a secound when we leave afk unknown

Edit: the bossbar appears for may 1/2 secounds, was hard to Screenshot it becauae it disappers so fast

CMI 8.7.9.3 Paper 1.16.3 Build 250

Zrips commented 3 years ago

What commands you have set for afk leave action in config file?

CloudeLecaw commented 3 years ago
AfkLeaveCmds:
  - cmi ctellraw all <T>&6[playerDisplayName] &eist nicht mehr AFK.</T><H>[playerDisplayName] war AFK wegen %cmi_user_afk_msg% für %cmi_user_afk_for%.</H>

just this one ctellraw meassage with a hover

CloudeLecaw commented 3 years ago

i found the issue in the config in the jail section

Jail:
  # Defines in milliseconds how often to check if player leaves jail area
  # Bigger numbers can help slightly lower server load
  CheckInterval: 500
  # Defines default jail time when time is not povided with command
  DefaultTime: 300
  # Chat range in blocks while player is in jail
  # Set to 0 to allow talking
  # set to -1 to prevent talking in general while jailed
  ChatRange: -1
  # When set to true jail time will decreese while player is offline
  # When set to false jail time will only be counted while player is online
  CountWhileOffline: false
  # When set to true jail time will not decreese if player gets into afk mode while being jailed
  # When set to false, time will pass normally
  NoAfk: true
  # Do you want to prevent players damage while he is in jail
  PreventDamage: true
  WhiteListedCmds: []

when i set NoAfk: true this happens Snag_5eee373

when i set NoAfk: false the issue is gone Snag_5f0aab5

Zrips commented 3 years ago

Fixed