Плагины/HomePlugin
HomePlugin

HomePlugin

A lightweight and efficient plugin to manage player homes and world spawns, featuring optional caching and powerful synchronization tools.

7.5K
12
Все версииTPA System Integration & Improvements

TPA System Integration & Improvements

Release2 мес. назад

Список изменений

✨ New Features & Enhancements

New TPA System (Teleport Requests)

  • Added /tpa, /tpaccept, /tpdeny with full tab-completion support.
  • Requests are now stored via an abstraction TpaRequestStore with two implementations:
    • LocalTpaRequestStore (in-memory, fast for single-server setups)
    • RedisTpaRequestStore (shared across multiple servers, ideal for networks)
  • Players can only teleport once the target accepts the request.
  • Added configurable TPA timeout (Config.Tpa.Tpa-duration, default: 30 seconds).

Improved Tab Completion

  • /tpaccept <player> and /tpdeny <player> now suggest only valid requesters.
  • Dynamically pulls data from cache/Redis for real-time accuracy.

CacheManager Integration

  • Centralized access for all active TPA requests.
  • Supports both Redis and Local modes seamlessly.

🔧 Internal Changes

  • Refactored TpaRequestStore to unify Redis & Local implementations.
  • Added getAllTpaSenders() + getTpaTarget(UUID) to simplify request lookups.
  • Safer cleanup of expired or invalid TPA requests.
  • Enhanced Redis handling with UUID-safe storage and retrieval.

🌐 Language Updates

Added new language entries in french.yml, english.yml, and custom.yml:

  • Tpa.Request-Sent → "You have sent a teleport request to {player}"
  • Tpa.Request-Received → "{player} has sent you a teleport request. Use /tpaccept or /tpdeny."
  • Tpa.Request-Expired → "Your teleport request to {player} has expired."
  • Tpa.No-Pending → "You have no pending TPA requests."

📌 Notes

  • ⚙️ If running in a networked setup, enable Redis in config.yml.
  • 🔁 All changes remain backward-compatible.
  • 🌐 Update language files manually with /lang update.

Full Changelog: https://github.com/fuzeblocks/HomePlugin/compare/0.7.8...0.7.9

Файлы

HomePlugin-0.7.9-main-SNAPSHOT.jar(5.65 MiB)
Основной
Скачать

Метаданные

Канал релиза

Release

Номер версии

0.7.9-main-SNAPSHOT

Загрузчики

Bukkit
Paper
Spigot

Версии игры

1.141.14.11.14.21.14.31.14.41.151.15.11.15.21.161.16.11.16.21.16.31.16.41.16.51.171.17.11.181.18.11.18.21.191.19.11.19.21.19.31.19.41.201.20.11.20.21.20.31.20.41.20.51.20.61.211.21.11.21.21.21.31.21.41.21.51.21.61.21.71.21.8

Загрузок

49

Дата публикации

2 мес. назад

Загрузил

fuzeblocksfuzeblocks

ID версии

Главная