Oper 是一款专为 Minecraft 服务器设计的安全插件,用于控制和管理工作员(OP)权限。
主要功能:
自动撤销 OP 权限 — 当玩家离开服务器时,其操作员权限将被自动移除。
自定义 OP 和 DEOP 命令 — 替代标准的 /op 命令,该插件提供可自定义的命令(默认 op: /opme,默认 deop: /deopme)。
权限系统 — 使用自定义命令需要特殊权限 oper.getop。
标准命令拦截 — 可以禁用默认的 /op 命令,确保玩家只能使用自定义命令。
未授权尝试自动封禁 — 如果没有相应权限的玩家试图获取 OP 权限,他们会被自动封禁,并附带清晰的解释。
完全可自定义的消息 — 所有插件消息均可在配置文件中轻松编辑,无需重新编译。
配置文件:
# 授予玩家 OP 权限的命令(不带 /)
command: opme
# 使用该命令所需的权限
permission: oper.getop
# 为普通玩家屏蔽标准的 /op 命令
# true - 即使玩家是 OP,也无法使用 /op 命令
# false - 保持原状
block-standard-op-command-for-players: true
# 无权限时的惩罚措施
# ban - 当玩家尝试在没有权限的情况下使用命令时封禁玩家
# kick - 当玩家尝试在没有权限的情况下使用命令时踢出玩家
# none - 当玩家尝试在没有权限的情况下使用命令时无视
no-perm-punishment: ban
# 可自定义的消息
messages:
no_permission: "§c您没有权限使用此命令!"
player_banned: "§c因未经授权尝试使用 OP 命令已被封禁!"
player_kicked: "§c因未经授权尝试使用 OP 命令已被踢出!"
op_granted: "§a您已获得操作员权限!"
already_op: "§c您已经是操作员了!"
op_revoked_on_quit: "离开服务器时已撤销操作员权限"
console_log_ban: "%player% 因尝试在未授权情况下使用 OP 命令而被封禁!"
console_log_kick: "%player% 因尝试在未授权情况下使用 OP 命令而被踢出!"
console_log_op_granted: "%player% 通过命令获得了操作员权限"
Oper is a security plugin for Minecraft servers designed to control and manage operator (OP) permissions.
Key features:
Automatic OP Revocation — when a player leaves the server, their operator rights are automatically removed.
Custom OP and DEOP commands — instead of the standard /op, the plugin provides a customizable command (default op: /opme, default deop: /deopme).
Permission System — using the custom command requires the special permission oper.getop.
Standard Command Blocking — the default /op command can be disabled, ensuring players only use the custom command.
Auto-ban for Unauthorized Attempts — if a player without proper permissions tries to gain OP, they are automatically banned with a clear explanation.
Fully Customizable Messages — all plugin messages can be easily edited in the configuration file without recompiling.
config:
# Command that will grant OP rights to the player (without the /)
command: opme
# Permission required to use the command
permission: oper.getop
# Block standard /op command for players
# true - players cannot use /op command even if they are OP
# false - leaves everything as is
block-standard-op-command-for-players: true
# No permission punishment
# ban - ban player when trying to use command without permission
# kick - kick player when trying to use command without permission
# none - do nothing when trying to use command without permission
no-perm-punishment: ban
# Customizable messages
messages:
no_permission: "§cYou do not have permission to use this command!"
player_banned: "§cBanned for unauthorized use of the OP command!"
player_kicked: "§cKicked for unauthorized use of the OP command!"
op_granted: "§aYou have been granted operator rights!"
already_op: "§cYou are already an operator!"
op_revoked_on_quit: "Operator rights were revoked when leaving the server"
console_log_ban: "%player% was banned for attempting to use the OP command without permission!"
console_log_kick: "%player% was kicked for attempting to use the OP command without permission!"
console_log_op_granted: "%player% was granted operator rights using the command"
评论 0
登录后参与评分
还没有评论,来抢沙发吧