Перейти к содержимому
Mineforgian

Peek

A magical Minecraft plugin that allows players to view other players' perspectives through a magical eye.

Загрузки
210
Подписчики
6
Обновлён
24 марта 2025 г.
Лицензия
MIT

Опубликован 30 января 2025 г.

Peek - Magical Spectator Plugin ✨

A magical Minecraft plugin that allows players to view other players' perspectives through spectator mode.

🌟 Magical Features

  • 🎯 Spectator Mode Peeking
  • 🔮 Privacy Mode & Request System
  • ⏳ Magic Cooldown
  • 📊 Detailed Usage Statistics
  • 🌍 Cross-Dimension Teleportation
  • 🎵 Custom Sound Effects
  • 💫 State Save & Restore
  • 📈 PlaceholderAPI Support

📌 Important Notes

  1. Requires Paper/Folia server
  2. Supports Minecraft 1.20+
  3. PlaceholderAPI recommended
  4. Privacy mode requires players to be online
  5. Cross-dimension teleportation may be affected by server settings
  6. Statistics are auto-saved periodically
  7. Cooldown times are configurable
  8. All messages are customizable
  9. All sound effects are customizable
  10. Statistics variables require PlaceholderAPI

🎮 Quick Start

  1. Download the latest version of Peek
  2. Place it in your server's plugins folder
  3. Restart the server
  4. (Optional) Install PlaceholderAPI for advanced variables

📜 Commands

  • /peek <player> - Start peeking at a player
  • /peek exit - Stop peeking
  • /peek stats - View statistics
  • /peek privacy - Toggle privacy mode
  • /peek accept - Accept peek request
  • /peek deny - Deny peek request

🔑 Permissions

  • peek.use - Allow using basic peek feature
  • peek.bypass - Allow bypassing privacy mode
  • peek.nocooldown - Allow bypassing cooldown
  • peek.stats - Allow viewing statistics

⚙️ Configuration

Basic Settings

Debug mode
debug: false
Limit settings
limits:
max-peek-distance: 50.0 # Maximum peek distance
cooldown:
enabled: true # Enable cooldown
duration: 90 # Cooldown duration (seconds)
Privacy settings
privacy:
request-timeout: 30 # Request timeout (seconds)
cooldown:
enabled: true # Enable request cooldown
duration: 90 # Cooldown duration (seconds)
Sound settings
sounds:
start-peek: ENTITY_ENDERMAN_TELEPORT # Start peek sound
end-peek: ENTITY_ENDERMAN_TELEPORT # End peek sound

📊 PlaceholderAPI Variables

  • %peek_peek_count% - Number of times player used peek
  • %peek_peeked_count% - Number of times player was peeked
  • %peek_total_duration% - Total peek duration (minutes)
  • %peek_is_peeking% - Whether player is currently peeking
  • %peek_is_private% - Whether player has privacy mode enabled

🎯 Feature Details

  1. Spectator Mode

    • Automatic switch to spectator mode
    • Automatic target following
    • Auto-end when out of range
  2. Privacy Mode

    • Requires request when enabled
    • Auto-cancel on timeout
    • Configurable request cooldown
  3. State Preservation

    • Automatic state saving
    • Auto-restore after disconnection
    • Cross-server restart support
  4. Distance Limits

    • Configurable maximum peek distance
    • Auto-end when exceeded
    • Cross-dimension teleportation

🎯 Technical Features

  1. Folia Support

    • Full Folia multi-threading support
    • Optimized region scheduler usage
    • Safe cross-thread operations
  2. State Management

    • Automatic player state saving
    • Safe state restoration mechanism
    • Cross-server restart protection
  3. Performance Optimization

    • Asynchronous data processing
    • Optimized memory management
    • Automatic cleanup system

🛠️ Development Requirements

  • Java 21+
  • Paper/Folia 1.20+
  • PlaceholderAPI (Optional)

📦 Build Tools

  • Maven
  • Adventure API
  • Folia API
  • PlaceholderAPI

🔄 Changelog

v2.7

  • ✨ Improved Folia support
  • 🔒 Enhanced state saving mechanism
  • 🎯 Optimized distance check logic
  • 🎵 Added more sound options

🐛 Issue Reporting

If you encounter any issues while using this plugin, please report them:

  1. Create an issue on GitHub Issues

📄 License

This project is licensed under the MIT license.

🙏 Acknowledgments

  • Paper - High performance Minecraft server
  • Folia - Multi-threaded server
  • MiniMessage - Text formatting library

Ченджлог

2.9Релиз1.21.2, 1.21.3, 1.21.4 · 24 марта 2025 г.
  • Fixed spec teleportation in PEEK state
  • Protocollib needs to be installed to block the delivery of the observer menu from the packet level
2.7Релиз1.21.2, 1.21.3, 1.21.4 · 30 января 2025 г.

[2.7]

Added

  • ✨ 完整支持 Folia 多线程系统
  • 🎯 新增死亡状态检查和处理机制
  • 🔄 新增重生后状态自动恢复功能
  • 📊 新增更多统计数据记录
  • 🌍 新增跨维度传送支持
  • 🎵 新增更多可配置的音效选项

Changed

  • ♻️ 重构了状态管理系统
  • 🔒 改进了状态保存机制
  • ⚡️ 优化了距离检查逻辑
  • 🌐 完善了多语言支持

Fixed

  • 🐛 修复了玩家死亡时的状态恢复问题
  • 🐛 修复了跨维度传送时的同步问题
  • 🐛 修复了部分音效配置无效的问题

[1.6]

Added

  • ✨ 新增私人模式功能
  • 🔔 新增请求系统
  • ⏲️ 新增请求超时机制
  • 🎵 新增请求相关音效
  • 📊 新增统计系统

Changed

  • 🔧 优化了配置文件结构
  • 💬 改进了消息提示系统
  • ⚡️ 优化了性能表现

[1.5]

Added

  • 🎯 基础贴贴功能
  • ⚙️ 可配置的距离限制
  • ⏳ 冷却时间系统
  • 💫 状态保存与恢复
  • 🎵 基础音效系统
  • 📈 PlaceholderAPI 支持

Changed

  • 🏗️ 重构了整个插件架构
  • 🔧 采用新的配置系统
  • 🌐 支持多语言配置

[1.0]

Added

  • 🎯 初始版本发布
  • 👀 基础观察者模式
  • ⚙️ 基础配置支持
  • 📝 基础命令系统

Комментарии

Загружаем…