Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions FEATURES.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ when the `@EventHandler` count above was updated; the earlier figure of 57 rows
enforced by the framework's own cooldown validator and read from `features.wild.cooldown`, default
60 seconds, `0` for none, at load and at `/ul reload`; before UltiKits/UltiEssentials#27 the key was
never read and the cooldown was a fixed 60 seconds, and binding it needs the framework's
config-bound `@CmdCD`, UltiKits/UltiTools-Reborn#531, hence this module's `api-version: 630`), and
config-bound `@CmdCD` (UltiKits/UltiTools-Reborn#531), available since UltiTools-API 6.3.0;
the module now declares `api-version: 640` for sender-aware completion), and
`BackCommand` (`ultiessentials.back`, simultaneously a command executor and, via `@EventListener`,
an event listener). `RespawnListener` and `JoinQuitListener` back the automatic spawn-teleport
behaviours.
Expand Down Expand Up @@ -281,14 +282,17 @@ backed by `BanService` and the persisted `BanData` entity — see `## Data Persi
vanilla ban list — a name unbanned by this plugin's commands may still be banned by a separate
vanilla `/ban`, and `UnbanCommand`/`BanService#isBannedInServerBanList` exist specifically to
report that distinction rather than a false "not banned anywhere".
The three name-ban commands use UltiTools-API 6.4.0 completion providers. If there are no
candidates for a non-player request, the framework still returns `null` and Bukkit may
fall back to its default online-name list; this module does not override that contract.

| ID | Feature | Kind | How to reach | Permission | Target | Tier | Manual | Source |
|---|---|---|---|---|---|---|---|---|
| ultiessentials.ban.ban | Permanently ban a player (online or previously-seen offline) with the default reason `No reason` when none is given (in the server's language at the time of the ban, and stored with the ban), kicking them immediately if online, and announcing the ban — to the whole server, or to the issuer alone when `features.ban.broadcast-ban` is `false`. Completing `<player>` (here and in `/tempban`) lists the online players the sender may see: a vanished player is left out for a sender without `ultiessentials.hide.see` (UltiKits/UltiEssentials#56) `/ban` deliberately takes over the vanilla `/ban` of the same name (maintainer decision 2026-09-27, UltiKits/UltiEssentials#61): it records the ban in this module's own store, not in the server's ban list, and the vanilla command stays reachable as `minecraft:ban`. | command | `/ban <player>` (alias `/eban`) | ultiessentials.ban | both | admin | brief | BanCommand#ban, BaseEssentialsCommand#suggestOnlinePlayers |
| ultiessentials.ban.ban | Permanently ban a player (online or previously-seen offline) with the default reason `No reason` when none is given (in the server's language at the time of the ban, and stored with the ban), kicking them immediately if online, and announcing the ban — to the whole server, or to the issuer alone when `features.ban.broadcast-ban` is `false`. Completing `<player>` (here and in `/tempban`) uses sender-aware providers for players and the server console, with case-insensitive prefix matching and framework permission/target filtering. Players without `ultiessentials.hide.see` do not see vanished targets; non-player senders see all online players (UltiKits/UltiEssentials#56, #96). `/ban` deliberately takes over the vanilla `/ban` of the same name (maintainer decision 2026-09-27, UltiKits/UltiEssentials#61): it records the ban in this module's own store, not in the server's ban list, and the vanilla command stays reachable as `minecraft:ban`. | command | `/ban <player>` (alias `/eban`) | ultiessentials.ban | both | admin | brief | BanCommand#ban, BaseEssentialsCommand#suggestBanPlayers |
| ultiessentials.ban.ban-with-reason | Permanently ban a player with a given reason, kicking them immediately if online, and announcing the ban and reason — to the whole server, or to the issuer alone when `features.ban.broadcast-ban` is `false` | command | `/ban <player> <reason>` | ultiessentials.ban | both | admin | brief | BanCommand#banWithReason |
| ultiessentials.ban.tempban | Temporarily ban a player for a parsed duration (`1d`/`2h`/`30m`/`1w`, combinable e.g. `1d12h30m`) with the same default reason as `ultiessentials.ban.ban` (see that row), refusing on an unparseable duration, and announcing the ban as `ultiessentials.ban.ban` does | command | `/tempban <player> <duration>` | ultiessentials.ban.temp | both | admin | brief | TempBanCommand#tempban |
| ultiessentials.ban.tempban | Temporarily ban a player for a parsed duration (`1d`/`2h`/`30m`/`1w`, combinable e.g. `1d12h30m`) with the same default reason as `ultiessentials.ban.ban` (see that row), refusing on an unparseable duration, and announcing the ban as `ultiessentials.ban.ban` does. Player and server-console completion uses the same online-name provider as `/ban`; duration presets (`1h`, `6h`, `12h`, `1d`, `3d`, `7d`, `30d`, `1w`) are prefix-filtered through the framework | command | `/tempban <player> <duration>` | ultiessentials.ban.temp | both | admin | brief | TempBanCommand#tempban, TempBanCommand#suggestDurations, BaseEssentialsCommand#suggestBanPlayers |
| ultiessentials.ban.tempban-with-reason | Temporarily ban a player for a parsed duration with a given reason, announcing the ban and reason as `ultiessentials.ban.ban-with-reason` does | command | `/tempban <player> <duration> <reason>` | ultiessentials.ban.temp | both | admin | brief | TempBanCommand#tempbanWithReason |
| ultiessentials.ban.unban | Unban a player by name (this plugin's own record only), reporting one of four distinct outcomes depending on whether the plugin's own record and/or the server's own vanilla ban list currently ban the name (see section note); the two success outcomes are reported only once no active record remains for the name (re-queried after the deactivation, because the framework's `update(T)` returns no affected-row count), so the unban broadcast (sent on the plain-success outcome only, and only while `features.ban.broadcast-unban` is `true`) cannot fire for a ban that is still in force; a ban record that survives the attempt is reported as a failure to lift it, never as a name that was never banned. An IP-only record (from `/banip`) stores its canonical address as its name, so `/unban <address>` spelled exactly that way also deactivates it and reports a player unban; `/unbanip` is the intended command for addresses (#94) | command | `/unban <player>` | ultiessentials.unban | both | admin | brief | UnbanCommand#unban |
| ultiessentials.ban.unban | Unban a player by name (this plugin's own record only), reporting one of four distinct outcomes depending on whether the plugin's own record and/or the server's own vanilla ban list currently ban the name (see section note); the two success outcomes are reported only once no active record remains for the name (re-queried after the deactivation, because the framework's `update(T)` returns no affected-row count), so the unban broadcast (sent on the plain-success outcome only, and only while `features.ban.broadcast-unban` is `true`) cannot fire for a ban that is still in force; a ban record that survives the attempt is reported as a failure to lift it, never as a name that was never banned. An IP-only record (from `/banip`) stores its canonical address as its name, so `/unban <address>` spelled exactly that way also deactivates it and reports a player unban; `/unbanip` is the intended command for addresses (#94). Player and server-console completion suggests distinct names from this module's active, unexpired records (including IP-only names), not online players or the vanilla ban list; prefix matching is case-insensitive and framework permission/target filtering applies (#96) | command | `/unban <player>` | ultiessentials.unban | both | admin | brief | UnbanCommand#unban, UnbanCommand#suggestBannedPlayers |
| ultiessentials.ban.ip-create | Permanently ban a canonical numeric IPv4/IPv6 address without a player UUID; verify insertion before kicking every matching online connection and confirming to the issuer; duplicate, disabled, invalid and failed writes are distinct outcomes; broadcast only with `features.ban.broadcast-ban` | command | `/banip <ip>` | ultiessentials.banip | both | admin | brief | BanIpCommand#ban, BanService#banIp |
| ultiessentials.ban.ip-create-with-reason | Same IP-only ban with an explicit reason, retained in the record and kick message | command | `/banip <ip> <reason>` | ultiessentials.banip | both | admin | brief | BanIpCommand#banWithReason |
| ultiessentials.ban.ip-lift | Deactivate every active, unexpired module record matching the canonical address; re-query before success, distinguish failed update from no active record, report a remaining vanilla IP ban without modifying it, and broadcast only plain success with `features.ban.broadcast-unban`; remains available while enforcement is disabled | command | `/unbanip <ip>` | ultiessentials.unbanip | both | admin | brief | UnbanIpCommand#unban, BanService#unbanIp |
Expand Down
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# UltiEssentials

[![UltiTools-API](https://img.shields.io/badge/UltiTools--API-6.3.0%2B-blue)](https://github.com/UltiKits/UltiTools-Reborn)
[![UltiTools-API](https://img.shields.io/badge/UltiTools--API-6.4.0%2B-blue)](https://github.com/UltiKits/UltiTools-Reborn)

Requires **UltiTools-API 6.3.0 or later**; an older framework refuses to load this module (it declares `api-version: 630`).
Requires **UltiTools-API 6.4.0 or later**; an older framework refuses to load this module (it declares `api-version: 640`).

需要 **UltiTools-API 6.3.0 或更高版本**;更早的框架会拒绝加载本模块(本模块声明 `api-version: 630`)。
需要 **UltiTools-API 6.4.0 或更高版本**;更早的框架会拒绝加载本模块(本模块声明 `api-version: 640`)。

UltiEssentials 是基于 UltiTools-API 框架开发的服务器基础功能插件模块,提供了常用的传送、玩家状态、管理员工具和服务器自定义功能。

Expand Down Expand Up @@ -82,6 +82,12 @@ These commands never change the separate vanilla IP ban list. A remaining vanill

`config/essentials.yml` 中的 `features.recall.enabled` 默认 `true`,现在会真正控制召回命令。改为 `false` 后执行 `/ul reload UltiEssentials` 即可禁用;旧文件中已有的 `false` 不会被覆盖。该键在 6.3.0 因命令尚不存在而删除,现在恢复为有效设置,不再报告“已移除”。更换 JAR 仍需重启。

### Ban command completion / 封禁命令补全

`/ban` and `/tempban` suggest online names for players and the server console through the framework's sender-aware providers. Players without `ultiessentials.hide.see` do not see vanished targets; non-player senders see every online player. `/tempban` also suggests duration presets matching the typed prefix. `/unban` suggests distinct names from this module's active, unexpired ban records (including the address stored as an IP-only record's name), not the online-player list or vanilla bans. Candidates are prefix-matched without regard to case and go through framework permission/target filtering. If no candidates remain for a non-player sender, UltiTools-API 6.4.0 still permits Bukkit's default online-name fallback.

`/ban`、`/tempban` 通过框架的发送者感知提供器,为玩家和服务器控制台补全在线名字;玩家没有 `ultiessentials.hide.see` 权限时看不到隐身目标,非玩家发送者可看到全部在线玩家。`/tempban` 还会按已输入前缀补全预设时长。`/unban` 补全本模块有效、未过期封禁记录中的去重名称(包括 IP 封禁记录保存为名称的地址),而不是在线玩家或原版封禁名单。候选按前缀匹配、不区分大小写,并经过框架的权限和发送者类型过滤。非玩家请求没有候选时,UltiTools-API 6.4.0 仍允许 Bukkit 回退到默认的在线名字补全。

### Commands that take over vanilla commands / 接管原版命令的命令

`/ban`, `/banlist` and `/scoreboard` deliberately take over the vanilla commands of the same name: `/ban` and `/banlist` work on this module's own ban records, not on the server's ban list, and `/scoreboard` toggles this module's sidebar. The vanilla commands stay reachable as `minecraft:ban`, `minecraft:banlist` and `minecraft:scoreboard`.
Expand Down Expand Up @@ -111,7 +117,7 @@ The sidebar is drawn on a private scoreboard this module assigns to each player

## 📦 安装

1. 确保服务器已安装 [UltiTools-API](https://github.com/UltiKits/UltiTools-Reborn) 6.3.0 或更高版本。本模块声明 `api-version: 630`,更早的框架会拒绝加载它
1. 确保服务器已安装 [UltiTools-API](https://github.com/UltiKits/UltiTools-Reborn) 6.4.0 或更高版本。本模块声明 `api-version: 640`,更早的框架会拒绝加载它
2. 将 `UltiEssentials-1.0.0.jar` 放入 `plugins/UltiTools/plugins/` 目录
3. 重启服务器(`/ul reload` 只重载配置,不会加载新的模块 jar)

Expand Down
Loading
Loading