[1.12+] MeowJoinCommand | 支持变量、权限判断的进服执行指令插件

原创 开源 工具 经济 [1.12+] MeowJoinCommand | 支持变量、权限判断的进服执行指令插件 1.3.2

完成注册/登录后下载
版权类型
原创
插件中文名称
进服自动执行权限指令
插件英文名称
MeowJoinCommand
原帖地址
#
支持的核心(服务端)
  1. Spigot
  2. Paper
  3. Purpur
  4. PufferFish
  5. 其他核心
语言支持
多语言
前置组件
必须 MeowLibs https://www.minebbs.com/resources/meowlibs-meow.11260/
(非必须)Vault https://www.minebbs.com/resources/1-8-latest-vault.7869/
(非必须)PlaceHolderAPI https://www.minebbs.com/resources/placeholderapi-api-1-8-1-20.8258/
适配版本(Java)
  1. 1.21
  2. 1.20
  3. 1.19
  4. 1.18
  5. 1.17
  6. 1.16
  7. 1.15
  8. 1.14
  9. 1.13
  10. 1.12
MeowJoinCommand

MeowJoinCommand是一个可以在玩家加入时判断其是否拥有权限并执行自定义指令的Bukkit插件

如何使用

下载本插件的最新稳定版,放入plugins文件夹中并重启服务器(也可使用plugman等插件进行热加载)
之后参考config.yml中的注释修改即可使用


前置依赖

本插件需要安装前置插件MeowLibs才可使用

MeowLibs下载地址:GitHub / 站内


配置文件
此处仅供参考,请勿复制粘贴,请以插件生成的config为准!​
YAML:
# 配置文件版本 / Configuration version
version: 1.3.2
# 插件开关 / Plugin Toggle
# true = 启用插件 / true = enable plugin
# false = 禁用插件 / false = disable plugin
enable_plugin: true
# 语言设置 / Language Settings
# 可选语言 / Available languages: 
# zh_hans = 简体中文 / zh_hans = Simplified Chinese
# zh_hant = 繁體中文 / zh_hant = Traditional Chinese
# en_us = English / en_us = English
# ja_jp = 日本語 / ja_jp = Japanese
language: zh_hans
# 配置列表 / Configuration List
configlist:
  test1:  # 配置名称 / Configuration name
    enabled: false  # 是否启用此配置 / Enable this configuration
    tick_delay: 0 # 延迟多少tick后执行检查 / Delay ticks before checking
    execute:  # 执行条件 / Execution conditions
      - permission: "!meowjoincommand.banned"
          # 权限条件:玩家不能拥有 "meowjoincommand.banned" 权限
          # Permission condition: Player must NOT have the "meowjoincommand.banned" permission
      - permission: "!meowjoincommand.banned1 || !meowjoincommand.banned2"
          # 权限条件:玩家不能同时拥有 "meowjoincommand.banned1" 和 "meowjoincommand.banned2" 权限
          # Permission condition: Player must NOT have both "meowjoincommand.banned1" AND "meowjoincommand.banned2" permissions
      - permission: "!meowjoincommand.banned3 || meowjoincommand.unbanned"
          # 权限条件:(玩家不拥有 "meowjoincommand.banned3" 权限)或者(拥有 "meowjoincommand.unbanned" 权限)这两者其中满足一者即算作满足条件
          # Permission conditions: (player does not have the "meowjoincommand.banned3" permission) or (has the "meowjoincommand.unbanned" permission) Either of these two conditions is met.
      - permission: "!meowjoincommand.banned3 || meowjoincommand.unbanned || meowjoincommand.unbanned1"
          # 权限条件:(玩家不拥有 "meowjoincommand.banned3" 权限)或者(拥有 "meowjoincommand.unbanned" 权限)又或者(拥有 "meowjoincommand.unbanned1" 权限)这多种判定条件其中满足一者即算作满足条件
          # Permission conditions: (The player does not have the "meowjoincommand.banned3" permission) or (has the "meowjoincommand.unbanned" permission) or (has the "meowjoincommand.unbanned1" permission) If one of these conditions is met, the condition is met.
      - permission: meowjoincommand.test1  
          # 权限条件:玩家必须拥有 "meowjoincommand.test1" 权限
          # Permission condition: Player must have the "meowjoincommand.test1" permission
      - permission: meowjoincommand.test0
          # 权限条件:玩家必须拥有 "meowjoincommand.test0" 权限
          # Permission condition: Player must have the "meowjoincommand.test0" permission
      - permission: "meowjoincommand.vip0 || meowjoincommand.vip1"
          # 权限条件:玩家必须拥有 "meowjoincommand.vip0" 或 "meowjoincommand.vip1" 权限之一
          # Permission condition: Player must have either "meowjoincommand.vip0" OR "meowjoincommand.vip1" permission
      - money: ">50"
          # 金钱条件:玩家余额必须大于 50
          # Money condition: Player's balance must be greater than 50
      - money: ">51 || <=19 || =30"
          # 金钱条件:玩家余额必须满足以下条件之一:
          # - 大于 51
          # - 小于等于 19
          # - 等于 30
          # Money condition: Player's balance must meet one of the following:
          # - Greater than 51
          # - Less than or equal to 19
          # - Equal to 30
      - placeholderapi: "%some_placeholder% = some_value" 
          # 占位符条件:%some_placeholder% 的值必须等于 some_value
          # Placeholder condition: %some_placeholder% must equal some_value
      - placeholderapi: "%some_placeholder% != some_value" 
          # 占位符条件:%some_placeholder% 的值不能等于 some_value
          # Placeholder condition: %some_placeholder% must NOT equal some_value
      
      - placeholderapi: "%some_placeholder% = some_value1 || %some_placeholder% = some_value2 || %some_placeholder% = some_value3"
          # 占位符条件:%some_placeholder% 的值必须等于以下之一:
          # - some_value1
          # - some_value2
          # - some_value3
          # Placeholder condition: %some_placeholder% must equal one of the following:
          # - some_value1
          # - some_value2
          # - some_value3
    commands:  
      # 满足条件后执行的命令 / Commands to execute when conditions are met
      # 这些指令会按照配置顺序从上到下依次执行 / These commands will be executed in order from top to bottom
      - type: console  
          # 命令执行者:服务器控制台
          # Command executor: Server console
        command: tell %player% Welcome to the server! 
          # 要执行的命令,%player% 会被替换为玩家名称
          # Command to execute, %player% will be replaced with player's name
        tick_delay: 5 
          # 延迟多少tick后执行此命令
          # Delay in ticks before executing this command
  test2: 
    enabled: false  
    tick_delay: 0 
    execute: 
      - permission: meowjoincommand.test2 
    commands: 
      - type: player 
        command: say Hello, %player%!  
        tick_delay: 10
      - type: console  
        command: money give %player% 100 
        tick_delay: 10
        
# 配置说明 / Configuration Guide
# 1. 支持的条件类型 / Supported condition types:
#    - permission: 权限检查 / Permission check
#    - money: 金钱检查 / Money check
#    - placeholderapi: 占位符检查 / Placeholder check
#
# 2. 金钱条件支持的运算符 / Money condition operators:
#    >= (大于等于) / >= (greater than or equal)
#    >  (大于) / >  (greater than)
#    =  (等于) / =  (equal)
#    <= (小于等于) / <= (less than or equal)
#    <  (小于) / <  (less than)
#
# 3. 占位符条件支持的运算符 / Placeholder condition operators:
#    =  (等于) / =  (equal)
#    != (不等于) / != (not equal)
#
# 4. 条件组合 / Condition combinations:
#    - 使用 || 连接多个条件表示"或"关系
#    - 多个条件之间是"与"关系,需要全部满足
#    - Use || to connect multiple conditions for "OR" relationship
#    - Multiple conditions are in "AND" relationship, all must be satisfied
#
# 5. 命令执行 / Command execution:
#    - type: player  = 以玩家身份执行 / Execute as player
#    - type: console = 以服务器身份执行 / Execute as server
#    - %player% 会被自动替换为玩家名称 / %player% will be replaced with player's name
#
# 6. 延迟设置 / Delay settings:
#    - 顶层 tick_delay: 延迟多少tick后开始检查条件
#    - commands 中的 tick_delay: 延迟多少tick后执行命令
#    - 在 TPS=20 时,1秒 = 20tick
#    - Top-level tick_delay: Delay in ticks before checking conditions
#    - tick_delay in commands: Delay in ticks before executing command
#    - When TPS=20, 1 second = 20 ticks
# Configuration file English content is translated by TONGYI Lingma

命令
重载插件:/meowjoincommand reload
权限:meowjoincommand.reload


下载
本插件为开源项目并免费提供下载使用!

免费用户QQ交流群:931360023

也可以在爱发电平台上赞助我,并通过加入付费用户群以获得及时、迅速的技术支持与安装指导!
赞助链接:https://afdian.com/a/NachoNeko_/
Github 链接:https://github.com/Zhang12334/MeowJoinCommand


赞助价格表
¥25 元:获取插件技术支持
¥200 元:获取插件技术支持 + 一次定制功能的机会

​
作者
已删除用户 49818
价格
10.00金粒
下载
252
查看
866
首次发布
最后更新

评分

0.00 星 0 次评分
后退
顶部 底部