Home›Java›Mods›SafeTPFirewall
ModsJava

SafeTPFirewall

Java mod listed for Minecraft 1.20–26.x. Downloads from the MC Java Mods app on Android.

by Nunotaba_Shinobu · on Modrinth

English​ | A safety plugin for servers to prevent admins from accidentally teleporting all entities due to mis-typing or tab-completing tp commands. 中文 |…

⬇ Download on Modrinth

SafeTPFirewall

English | 中文说明 below

Paper / Folia server high-risk entity teleport safety confirmation plugin.

Features

Audit Logging

Folia Compatibility

Installation

  1. Place SafeTPFirewall.jar into server's plugins/ directory
  2. Restart server
  3. Check logs to confirm SafeTPFirewall enabled

Build (with internet)

mvn clean package
# Output: target/SafeTPFirewall.jar

Build (offline / no internet)

Ensure you have the Paper API jar (download from https://repo.papermc.io, or local Maven repo):

javac -cp paper-api-1.21.1.jar -d out \
  src/main/java/com/example/safetp/*.java
jar --create --file SafeTPFirewall.jar --main-class com.example.safetp.SafeTPFirewall -C out .

Demo

Accidental input:

/tp @e ~ ~ ~

Plugin response:

[SafeTP] High-risk entity teleport command detected!
Type /y within 30 seconds to confirm execution, or /n to cancel:
Original command: /tp @e ~ ~ ~

Type /y → executes; no input / wrong input / timeout → blocked ✅

Command Blocks / Function Notes

Paper does not provide in-process events for command block / function pre-execution. Proper protection methods:

  1. Temporarily disable dangerous functions during events
  2. Or restrict command-blocks level in paper.yml
  3. Plugin provides log-command-block-only toggle for audit logging

Configuration

Edit plugins/SafeTPFirewall/config.yml to adjust timeout duration, source toggles, etc.


中文说明

Paper / Folia 端高危实体传送安全确认插件。

功能

操作留痕(审计日志)

Folia 兼容

安装

  1. 将 SafeTPFirewall.jar 放入服务端的 plugins/ 目录
  2. 重启服务端
  3. 查看日志确认 SafeTPFirewall 已启用

构建(有魔法网络)

mvn clean package
# 产物:target/SafeTPFirewall.jar

构建(无魔法网络 / 离线)

确保有 Paper API jar(从 https://repo.papermc.io 下载,或本地 Maven 仓库):

javac -cp paper-api-1.21.1.jar -d out \
  src/main/java/com/example/safetp/*.java
jar --create --file SafeTPFirewall.jar --main-class com.example.safetp.SafeTPFirewall -C out .

效果演示

手滑输入:

/tp @e ~ ~ ~

插件响应:

[SafeTP] 检测到高危实体传送命令!
30 秒内输入 /y 确认执行,或输入 /n 取消:
原始命令: /tp @e ~ ~ ~

输入 /y → 执行;不输/输错/超时 → 不执行 ✅

命令方块 / function 说明

Paper 不提供命令方块/function 执行前的进程内事件,正经防护方式:

  1. 活动期间临时禁用危险 function
  2. 或在 paper.yml 中限制 command-blocks 等级
  3. 插件提供 log-command-block-only 开关做审计日志

配置

编辑 plugins/SafeTPFirewall/config.yml 可调超时时间、来源开关等。

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