跳到正文

Tempban

Adds a command to temporarily ban players

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

A simple Forge mod that adds two commands (/tempban and /tempban-ip) that work exactly like the /ban and /ban-ip command, with the difference that you can specify the length of the ban in hours, days and months.

This makes use of Vanilla’s ‘expired’ field in a ban entry which isn’t used in the normal ban command.

Usage:

/tempban <selector> <months> <days> <hours> [<reason>]
/tempban-ip <ip> <months> <days> <hours> [<reason>]

 

To unban temporarily banned users, using the vanilla /pardon and /pardon-ip commands should do the trick.

Since the ‘expired’ field isn’t used anywhere in vanilla, there’s not a great deal of support for it within the code, and users which were banned temporarily may face minor issues when joining a server (for example not being able to connect sometimes due to an exception). If any more severe issues occur, feel free to submit an issue on the issue tracker.

This mod is server side only (meaning that players don’t need to install this mod at all).

常见问题

Tempban 支持哪些 Minecraft 版本?

Tempban 支持 Minecraft Java 版 1.16.5–26.3,共 25 个版本,可用的加载器:Fabric / Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

Tempban 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

Redstone_Dubstep 的其他作品

查看全部 →