Home›Java›Mods›SudoOp
ModsJava

SudoOp

Java mod listed for Minecraft 1.21. Downloads from the MC Java Mods app on Android.

by youximi · on Modrinth

SudoOp Mod lets normal players on a server grant themselves temporary OP permissions with one command. SudoOp Mod 让服务器普通玩家通过一条命令自助获取临时 OP 权限。

⬇ Download on Modrinth

SudoOp

English | 中文


English

SudoOp allows normal players on a server to grant themselves temporary OP permissions with one command, with automatic revocation when time expires. Players don't need any client-side mods, and admins don't need to manually run /op, /deop, or watch the clock to revoke permissions.

Features

Usage

Players type in chat:

Configuration

Config file located at config/sudoop-server.toml, changes take effect after server restart.

Config Option Default Description
commandName "sudo" Command name
durationSeconds 600 Duration of temporary OP in seconds
opLevel 2 Permission level granted (1–4)
password "" Password required to apply; empty means no password
broadcastEnabled true Whether to broadcast grant/expiry server-wide
actionBarEnabled true Whether to show remaining time in action bar
grantBroadcastMessage "&a{player} 获取了临时OP" Grant broadcast message (default in Chinese)
expireBroadcastMessage "&e{player} 的临时OP已结束" Expiry broadcast message (default in Chinese)
actionBarMessage "&b当前已获取临时OP,还剩 {minutes} 分钟" Action bar message (default in Chinese)

Messages support & or § color codes, and placeholders {player} (player name) and {minutes} (remaining minutes).

Passwords are never shown in chat prompts, broadcasts, logs, or mod logs.

License

MIT


中文

SudoOp 让服务器普通玩家通过一条命令自助获取临时 OP 权限,到期自动回收。玩家无需安装任何客户端模组,管理员也无需手动 /op、/deop 或盯着时间收权。

特性

使用方法

玩家在聊天栏输入:

配置

配置文件位于 config/sudoop-server.toml,修改后重启服务器生效。

配置项 默认值 说明
commandName "sudo" 命令名称
durationSeconds 600 临时 OP 持续时长(秒)
opLevel 2 授予的权限等级(1–4)
password "" 申请所需密码,留空表示无需密码
broadcastEnabled true 是否全服广播授权/到期
actionBarEnabled true 是否在动作栏显示剩余时间
grantBroadcastMessage "&a{player} 获取了临时OP" 授权广播文案
expireBroadcastMessage "&e{player} 的临时OP已结束" 到期广播文案
actionBarMessage "&b当前已获取临时OP,还剩 {minutes} 分钟" 动作栏文案

文案支持 & 或 § 颜色代码,以及 {player}(玩家名)、{minutes}(剩余分钟数)占位符。

密码不会出现在聊天提示、广播、日志或模组日志中。

许可证

MIT

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more