随机传送 /rtp

随机传送 /rtp

The Random Teleport (/rtp) 插件是 Hytale 中的一款实用工具,旨在通过将玩家瞬间传送到地图上未知区域来增强世界探索体验。

实用

随机 传送

一款面向 Hytale 服务器的简单随机传送 (rtp) 插件。

功能特性

  • /rtp - 传送到远离出生点的随机位置
  • 预热时间要求用户在传送前不要移动
  • 配置文件中支持语言配置
  • 默认1小时冷却时间以防止刷屏(可配置)
  • 别名: /randomtp, /randomteleport,也可在配置文件中自定义。
  • 支持权限管理。
  • 通过 /rtp --player=Nick 以管理员或控制台身份传送其他玩家。

安装方法

  1. 下载 JAR 文件
  2. 将其放入服务器的 /mods 文件夹
  3. 重启服务器
  4. 在 mods/_RandomTeleport/config.json 文件中进行配置,或保留默认设置
  5. 在游戏中使用 /rtp 命令。

配置:

{
  "pluginName": "RandomTeleport",
  "version": "1.2.0",
  "debugMode": false,
  "command": {
    "name": "rtp",
    "aliases": [
      "randomtp",
      "randomteleport"
    ],
    "description": "Randomly teleports you away from spawn"
  },
  "permissions": {
    "use": "randomteleport.use",
    "bypassCooldown": "randomteleport.bypass.cooldown",
    "bypassWarmup": "randomteleport.bypass.warmup",
    "teleportOther": "randomteleport.admin.teleportother"
  },
  "tiers": {
    "diamond": {
      "permission": "randomteleport.tier.diamond",
      "cooldownSeconds": 300,
      "warmupSeconds": 1,
      "minDistance": 8000,
      "maxDistance": 15000,
      "minHeight": 120,
      "maxHeight": 260
    },
    "gold": {
      "permission": "randomteleport.tier.gold",
      "cooldownSeconds": 900,
      "warmupSeconds": 2,
      "minDistance": 6000,
      "maxDistance": 12000,
      "minHeight": 120,
      "maxHeight": 260
    },
    "silver": {
      "permission": "randomteleport.tier.silver",
      "cooldownSeconds": 1800,
      "warmupSeconds": 3,
      "minDistance": 4000,
      "maxDistance": 9000,
      "minHeight": 120,
      "maxHeight": 260
    },
    "bronze": {
      "permission": "randomteleport.tier.bronze",
      "cooldownSeconds": 2700,
      "warmupSeconds": 5,
      "minDistance": 3000,
      "maxDistance": 6000,
      "minHeight": 120,
      "maxHeight": 260
    }
  },
  "defaults": {
    "cooldownSeconds": 3600,
    "warmupSeconds": 5,
    "minDistance": 5000,
    "maxDistance": 9000,
    "movementThreshold": 0.5,
    "minHeight": 120,
    "maxHeight": 260,
    "maxAttempts": 10
  },
  "messages": {
    "cooldown": "\u00265[RTP] \u0026bYou must wait \u0026e{time} \u0026bbefore using /rtp again!",
    "noPermission": "\u00265[RTP] \u0026cYou don\u0027t have permission to use /rtp!",
    "noWorld": "\u00265[RTP] \u0026cYou must be in a world to use this command!",
    "warmupStart": "\u00265[RTP] \u0026bTeleporting in \u0026e{seconds} \u0026bseconds... Don\u0027t move!",
    "movedCancelled": "\u00265[RTP] \u0026cTeleportation cancelled! You moved too much.",
    "noSafeSpot": "\u00265[RTP] \u0026cCould not find a safe landing spot. Try again!",
    "error": "\u00265[RTP] \u0026cError scanning for safe location.",
    "teleported": "\u00265[RTP] \u0026bTeleported to \u0026fX: {x}, Y: {y}, Z: {z} \u0026f({distance} blocks from spawn)",
    "searching": "\u00265[RTP] \u0026fSearching for safe location... (attempt {attempt}/{max})",
    "teleportedOther": "\u00265[RTP] \u0026bTeleported \u0026e{player} \u0026bto \u0026fX: {x}, Y: {y}, Z: {z} \u0026f({distance} blocks from spawn)",
    "noPermissionOther": "\u00265[RTP] \u0026cYou don\u0027t have permission to teleport other players!",
    "targetNotFound": "\u00265[RTP] \u0026cTarget player is not in a world!"
  }
}

权限:(你可以在配置文件中配置各等级的冷却预热时间。)

权限 默认 描述
randomteleport.use 使用 rtp 的权限
randomteleport.bypass.cooldown 完全跳过冷却时间
randomteleport.bypass.warmup 瞬间传送(无预热)
randomteleport.tier.diamond 5 分钟冷却,1 秒预热
randomteleport.tier.gold 15 分钟冷却,2 秒预热
randomteleport.tier.silver 30 分钟冷却,3 秒预热
randomteleport.tier.bronze 45 分钟冷却,5 秒预热

源代码: GitHub

如果你觉得这个插件有用,请在 GitHub 上给它一个 ⭐,并关注我以获取更多插件!