1 Star 0 Fork 0

YYT/Broadcaster

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

start2

Broadcaster

用于PocketMine-MP的高级广播插件。

种类

PocketMine-MP插件

要求

PocketMine-MP 1.7dev API 3.0.0-ALPHA7 -> 3.0.0-ALPHA11

概述

Broadcaster 是一个高级的PocketMine-MP广播插件。
通过广播,您可以设置自定义消息,弹出和标题广播。你也可以用/sm,弹出/sp和标题的/st命令。
这个插件还让你定制颜色 (你可以使用 & 标记取代 § 在文本中),前缀,后缀和间隔。

EvolSoft网站: https://www.evolsoft.tk

这个插件使用新的API。你不能把它安装在旧版本的PocketMine上。

文档

配置 (config.yml):

---
# Available tags for broadcast messages, popups and titles:
# - {MAXPLAYERS}: 显示服务器支持的最大玩家数。
# - {TOTALPLAYERS}: 显示所有在线玩家的数量。
# - {PREFIX}: 显示前缀
# - {SUFFIX}: 显示前缀
# - {TIME}: 显示当前时间
# Available tags for /sendmessage, /sendpopup and /sendtitle format:
# - {MESSAGE}: 提示消息
# - {MAXPLAYERS}: 显示服务器支持的最大玩家数。
# - {TOTALPLAYERS}: 显示所有在线玩家的数量。
# - {PREFIX}: 提示消息
# - {PLAYER}: 消息接收方
# - {SENDER}: 显示发送者的名字
# - {SUFFIX}: 提示消息
# - {TIME}: 显示当前时间
# Extra tag for titles:
# - {SUBTITLE}: 添加字幕 (此标记后的文本将是副标题的内容。) 
# Prefix
prefix: "&9[&eBroadcaster&9]"
# Suffix
suffix: "[A]"
# Date\Time format (replaced in {TIME}). For format codes read http://php.net/manual/en/datetime.formats.php
datetime-format: "H:i:s"
# Message broadcast
message-broadcast:
 # Enable message broadcast
 enabled: true
 # Broadcast interval (in seconds)
 time: 15
 # Command /sendmessage format
 command-format: "&e[{TIME}] {PREFIX} {SUFFIX} &a{SENDER}&e>&f {MESSAGE}"
 # Broadcast messages
 messages:
  - "&e[{TIME}] {PREFIX}&f 1st message"
  - "&e[{TIME}] {PREFIX}&f 2nd message"
  - "&e[{TIME}] {PREFIX}&f 3rd message"
# Popup broadcast
popup-broadcast:
 # Enable popup broadcast
 enabled: true
 # Popup broadcast interval (in seconds)
 time: 15
 # Popup duration (in seconds)
 duration: 5
 # Command /sendpopup format
 command-format: "&a{SENDER}&e>>&f {MESSAGE}"
 # Popup broadcast messages
 messages:
  - "&aWelcome to your server"
  - "&d{TOTALPLAYERS} &eof &d{MAXPLAYERS} &eonline"
  - "&bCurrent Time: &a{TIME}"
# Title broadcast
title-broadcast:
 # Enable title broadcast
 enabled: true
 # Title broadcast interval
 time: 30
 # Command /sendtitle format
 command-format: "&d{MESSAGE}"
 # Title broadcast messages
 messages:
  - "&aWelcome to your server!{SUBTITLE}&bGood game!"
  - "&eHello player!"
...

指令:

/broadcaster - Broadcaster commands (aliases: [bc, broadcast])

/sendmessage <player (* for all players)> <message> - Send message to player(s) (aliases: [sm, smsg])

/sendpopup <player (* for all players)> <message> - Send popup to player(s) (aliases: [sp, spop])

/sendtitle <player (* for all players)> <message> - Send title to player(s) (aliases: [st, stl])

权限

  • broadcaster.* - Broadcaster permissions tree.
  • broadcaster.info - Let player read info about Broadcaster.
  • broadcaster.reload - Let player reload Broadcaster.
  • broadcaster.sendmessage - Let player send messages to players with /sendmessage command.
  • broadcaster.sendpopup - Let player send popups to players with /sendpopup command.
  • broadcaster.sendpopup - Let player send titles to players with /sendtitle command.

API

几乎所有的插件都有API访问来广泛扩展它们的特性。

To access Broadcaster API:
1. 定义plugin.yml中的插件依赖项。 (you can check if Broadcaster is installed in different ways):

depend: [Broadcaster]

2. 在你的插件代码中包含广播Broadcaster API:

//Broadcaster API
use Broadcaster\Broadcaster;

3. 通过以下方式访问API:

Broadcaster::getAPI()
The MIT License (MIT) Copyright (c) 2014-2017 EvolSoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

用于PocketMine-MP的高级广播插件。 展开 收起
PHP
MIT
取消

发行版

暂无发行版

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/SuperYYT/Broadcaster.git
git@gitee.com:SuperYYT/Broadcaster.git
SuperYYT
Broadcaster
Broadcaster
master

搜索帮助