-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Hi,
I just installed the 'AntiAFK' plugin and I was testing some things on how it works. I created the following config;
# ================================== #
# MAIN AFK SYSTEM #
# ================================== #
# Max AFK time before punishments occur (short for testing)
max_afk_time: "1m"
# Warnings for the player BEFORE the punishment
warnings:
- time: "30s"
type: "CHAT"
message: "&e[AFK] &7You are inactive. &c%time_left% &7until punishment is applied!"
- time: "20s"
type: "TITLE"
title: "&c&lWARNING!"
subtitle: "&eMove within 5 seconds!"
sound: "BLOCK_NOTE_BLOCK_PLING"
- time: "5s"
type: "ACTION_BAR"
message: "&4&lPunishment almost applied: %time_left%"
sound: "ENTITY_EXPERIENCE_ORB_PICKUP"
# Actions that take place when max_afk_time is reached
actions:
- type: "CONSOLE"
command: "broadcast 85"
- type: "PLAYER"
command: "spawn"
- type: "DISCORD_WEBHOOK"
message: "**%player_displayname%** has been sent to spawn due to AFK behavior."
# ================================== #
# PROGRESSIVE PUNISHMENT #
# ================================== #
progressive_punishment:
enabled: true
reset_after: "1d" # quick reset for testing
punishments:
- count: 1
actions:
- type: "CONSOLE"
command: "broadcast 1"
- type: "PLAYER"
command: "spawn"
- count: 2
actions:
- type: "CONSOLE"
command: "broadcast 2"
- count: 3
actions:
- type: "CONSOLE"
command: "broadcast 3"
- type: "DISCORD_WEBHOOK"
message: ":rotating_light: **%player_displayname%** is temporarily banned due to repeated AFK behavior."
The problem is, when it reaches the 30 seconds my chat gets spammed with the following messages:
You are inactive. 29 seconds until punishment is applied!"
Do you have any idea on how to stop this?
My main goal is;
- After 3 min 1 message in chat with 'You are inactive...'
- After 4 min 1 title with a sound
- After 4 min and 30 seconds the action bar
- After 5 min a kick
I dont want to use the progressive punish system, every time a player is AFK the rules above should be used.
(The bossbar and actionbar doenst work)
Im using paper-1.21.10-108
If possible, please contact me via discord: frederickh01
Metadata
Metadata
Assignees
Labels
No labels