MinuteMessage

插件

· 作者 ning-g-mo

一款支持多语言的 Minecraft 定时消息插件。

0 本站下载 0 关注 更新于 2 年前

最新 1.0.2 · 1.21.1 · Spigot

一键开服(送7天)

MinuteMessage

一款用于 Minecraft 服务器的多语言定时消息插件。

功能特性

  • ? 多语言支持
  • ⏰ 自定义消息间隔
  • ? 多种消息类型(控制台、聊天栏、全服广播、指定世界)
  • ? 版本更新检测
  • ? 支持颜色代码与换行符
  • ? 玩家加入/离开提示
  • ? 维度切换通知

状态

  • 开发中
  • 如果您希望提交更多语言翻译,请提交 PR。

使用方法

命令

  • /mm reload - 重载配置
  • /mm list - 查看所有消息组
  • /mm interval <group> <minutes> - 设置消息间隔
  • /mm toggle join - 开关加入消息
  • /mm toggle quit - 开关离开消息
  • /mm toggle dimension - 开关维度切换消息

权限

  • minutemessage.admin - 管理员权限

配置文件

# MinuteMessage Configuration File
# Plugin Version: 1.0.0
# Author: 柠枺

# ========================
# Basic Settings
# ========================
settings:
  # Whether to check for updates
  check-update: true
  # Default language (currently supports: zh_CN)
  language: 'zh_CN'
  # Player-related message settings
  player:
    # Player join message
    join:
      enabled: false
      # Whether to broadcast to other players
      broadcast: true
      message: '&aWelcome &f%player_name% &a to the server!'
    # Player quit message
    quit:
      enabled: false
      # Whether to broadcast to other players
      broadcast: true
      message: '&ePlayer &f%player_name% &e has left the server'
    # Dimension switch message
    dimension:
      enabled: false
      # Whether to broadcast to other players
      broadcast: false
      messages:
        to_nether: '&c>> You have entered the Nether'
        to_end: '&5>> You have entered the End'
        to_overworld: '&2>> You have returned to the Overworld'

# ========================
# Message Group Configuration
# ========================
# Configuration format description:
# messages:
#   <message group name>:
#     interval: <send interval (minutes)>
#     type: <message type>
#     worlds: [list of world names]  # Only needed when type: WORLD
#     content: [list of message content]
#
# Message type (type) description:
# - CONSOLE: Displayed only in the console
# - CHAT: Sent to all players
# - BROADCAST: Server-wide broadcast
# - WORLD: Specific world broadcast
#
# Supported formats:
# - Color codes: &a, &b, &c, etc.
# - New line character: \n
# - PlaceholderAPI variables: %player_name%, etc.
# ========================

messages:
  # Welcome message example
  welcome:
    interval: 15  # Sent every 15 minutes
    type: BROADCAST
    content:
      - '&aWelcome to the server!\n&bCurrent online players: %server_online%'
      - '&eThank you for playing on our server!'
  
  # Rules reminder example
  rules:
    interval: 30  # Sent every 30 minutes
    type: CHAT
    content:
      - '&6=== Server Rules ===\n&f1. No cheating clients\n&f2. No malicious destruction\n&f3. Please get along with other players'
  
  # World notice example
  world_notice:
    interval: 45  # Sent every 45 minutes
    type: WORLD
    worlds: 
      - 'world'
      - 'world_nether'
    content:
      - '&bThis message is only displayed in the Overworld and the Nether'

# ========================
# Command Description
# ========================
# /mm reload - Reload configuration
# /mm list - View all message groups
# /mm interval <group name> <minutes> - Set message interval
#
# Permission nodes:
# minutemessage.admin - Admin permissions
# ========================

# ========================
# PlaceholderAPI Variable Examples
# ========================
# %server_online% - Number of online players
# %server_max_players% - Maximum number of players
# %player_name% - Player name
# %player_world% - Player's current world
# For more variables, please visit: https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders
# ========================

安装步骤

  1. 下载最新版本
  2. 将插件放入服务器的 plugins 文件夹
  3. 重启服务器或重载插件

依赖项

  • Spigot/Paper 1.20.1+
  • PlaceholderAPI(可选)

路线图

  • 基础消息系统
  • 多语言支持
  • 玩家事件消息
  • 修复 PlaceholderAPI 支持
  • 更多消息类型
  • 消息模板系统

贡献指南

欢迎提交 Issue 和 Pull Request!

许可证

本项目采用 MIT License 许可

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源