▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Плагины/EnfAfkZone
EnfAfkZone

EnfAfkZone

Increase your player count by rewards for AFK! Players that enter the AFK zone will be rewarded for staying online on your server.

59
0

Increase your player count by rewards for AFK! Players that enter the AFK zone will be rewarded for staying online on your server. Permissions: enf.afkzone.permission

Plugin includes the ability to create AFK zones using a command, visualize zones, display messages on chat, title, bossbar, or actionbar, set time formatting, configure the progress bar, adjust bossbar direction (increasing or decreasing), display messages upon entering or exiting an AFK zone, set rewards based on permissions, chance, and support for multiple AFK zones in one location.

For help use command: /afkzone help

For hot reload config use command: /afkzone reloadconfig

config.yml

# EnfAfkZone configuration
# Author: xEnif
# DON'T DELETE THAT VALUES
# Project Version: 2.8
# DON'T DELETE THAT VALUES

help-command:
- ''
- <#00fff7>⎯ ⎯ ⎯ [ <bold><#00ffcc>AFKZONE HELP</#00ffcc></bold> ] ⎯ ⎯ ⎯
- ''
- <#00ffe0><click:run_command:'/afkzone wand'><hover:show_text:'<bold><gray>Click
    to get AFKZone Wand'>/afkzone wand<dark_gray>  -  </dark_gray><white>Gives you
    the AfkZone Wand.
- <#00ffe0>/afkzone create [name]<dark_gray>  -  </dark_gray><white>Creates a new
    AFK zone with the given name.
- <#00ffe0>/afkzone delete [name]<dark_gray>  -  </dark_gray><white>Deletes the AFK
    zone with the given name.
- <#00ffe0><click:run_command:'/afkzone list'><hover:show_text:'<bold><gray>Click
    to list all AFK zones'>/afkzone list<dark_gray>  -  </dark_gray><white>Displays
    a list of all created AFK zones.
- <#00ffe0>/afkzone tp [name]<dark_gray>  -  </dark_gray><white>Teleports you to the
    specified AFK zone.
- <#00ffe0>/afkzone reloadconfig<dark_gray>  -  </dark_gray><white>Reload AFK zone
    config.
- ''
afk-zone-enter:
    type: TITLE
    enabled: true
    message:
    - <bold><#00ffcc>You have entered an AFK Zone!
    - <gray>You are now marked as AFK.
    options:
        title-times:
            fade-in: 0
            stay: 3
            fade-out: 1
afk-zone-exit:
    type: TITLE
    enabled: true
    message:
    - <bold><#00ffcc>You have left the AFK Zone!
    - <gray>You are no longer AFK.
    options:
        title-times:
            fade-in: 0
            stay: 3
            fade-out: 1
wand-item:
    type: GOLDEN_HOE
    amount: 1
    display-name: <!italic><bold><#b56eff>AfkZone Wand
    lore: []
    enchantments: {}
    item-flags:
    - HIDE_ADDITIONAL_TOOLTIP
wand-received-message: <#00ff7f>✔ </#00ff7f><green>You have received the </green><bold><#b56eff>AfkZone
    Wand</#b56eff></bold><green>!
time-format: '{H}h {M}m {S}s'
progress-bar-format:
    symbol-count: 10
    symbol: '|'
    loading-color: yellow
    completed-color: green
update-boss-bar-progress: true
boss-bar-progress-direction: INCREASING

afk-zones.yml

# EnfAfkZone configuration
# Author: xEnif
# DON'T DELETE THAT VALUES
# Project Version: 2.8
# DON'T DELETE THAT VALUES

afk-zones:
    test2:
        worldName: world
        minX: 55
        minY: 63
        minZ: 23
        maxX: 67
        maxY: 71
        maxZ: 30
        rewards:
        -   permission: ''
            chance: 0.0
            items:
            -   type: DIRT
                amount: 1
            commands: []
        -   permission: ''
            chance: 0.0
            items:
            -   type: DIAMOND_SWORD
                amount: 1
                lore: []
                enchantments: {}
                custom-model-data-component-string: customModelData
            commands: []
        -   permission: ''
            chance: 0.0
            items:
            -   type: DIRT
                amount: 1
            commands:
            - give {PLAYER} minecraft:dirt 1
        message:
            type: BOSSBAR
            enabled: true
            message:
            - <bold><#00ffcc>YOU ARE IN AFK<#00fff7> ⏳ Reward in </#00fff7><#b56eff>{TIME}</#b56eff><#00fff7>
                (</#00fff7><#b56eff>{PERCENT}%</#b56eff><#00fff7>)
            options:
                bossbar-options:
                    color: PURPLE
                    overlay: PROGRESS
                    flags:
                    - CREATE_WORLD_FOG
                    - DARKEN_SCREEN
        time-to-stay: 1m
        add-reward-success-sound: ENTITY.ARROW.HIT_PLAYER
    test:
        worldName: world
        minX: 55
        minY: 63
        minZ: 23
        maxX: 66
        maxY: 71
        maxZ: 29
        rewards:
        -   permission: ''
            chance: 0.0
            items:
            -   type: DIRT
                amount: 1
            commands: []
        -   permission: ''
            chance: 0.0
            items:
            -   type: DIAMOND_SWORD
                amount: 1
                lore: []
                enchantments: {}
                custom-model-data-component-string: customModelData
            commands: []
        -   permission: ''
            chance: 0.0
            items:
            -   type: DIRT
                amount: 1
            commands:
            - give {PLAYER} minecraft:dirt 1
        message:
            type: TITLE
            enabled: true
            message:
            - <bold><#00ffcc>YOU ARE IN AFK
            - <#00fff7>(<#b56eff>{BAR}</#b56eff>)
            options:
                bossbar-options:
                    color: PURPLE
                    overlay: PROGRESS
                    flags:
                    - CREATE_WORLD_FOG
                    - DARKEN_SCREEN
        time-to-stay: 1m
        add-reward-success-sound: ENTITY.ARROW.HIT_PLAYER

Совместимость

Minecraft: Java Edition

1.21.x

Платформы

Поддерживаемые окружения

Сервер

Создатели

Детали

Лицензия:MIT
Опубликован:6 месяцев назад
Обновлён:6 месяцев назад
Главная