AfkZone

插件

· 作者 xEnif

通过挂机奖励提升玩家数量!进入挂机区域的玩家将在你的服务器上保持在线时获得奖励。

0 本站下载 0 关注 更新于 1 年前

需要前置:InventoryAPI

最新 2.8 · 26.1.2 · Paper / Spigot

一键开服(送7天)

通过挂机奖励增加在线玩家数!进入挂机区域的玩家将在服务器保持在线时获得奖励。 权限:enf.afkzone.permission

插件支持使用命令创建挂机区域、可视化区域、在聊天栏、标题、Boss 栏或操作栏显示消息、设置时间格式、配置进度条、调整 Boss 栏方向(递增或递减)、在进入或退出挂机区域时显示消息、基于权限和概率设置奖励,以及在一个位置支持多个挂机区域。

如需帮助请使用命令:/afkzone help

如需热重载配置文件请使用命令:/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

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源