Skip to content

Commit b81ff6b

Browse files
author
Flavius12
committed
Update README.md
1 parent 485c66b commit b81ff6b

File tree

1 file changed

+29
-11
lines changed

1 file changed

+29
-11
lines changed

README.md

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ PocketMine-MP plugins
1010

1111
## Requirements
1212

13-
PocketMine-MP Alpha_1.4 API 1.11.0
13+
PocketMine-MP Alpha_1.5 API 1.12.0
1414

1515
## Overview
1616

@@ -20,13 +20,14 @@ PocketMine-MP Alpha_1.4 API 1.11.0
2020

2121
***This Plugin uses the New API. You can't install it on old versions of PocketMine.***
2222

23-
You can set custom automatic messages and you can also send messages with /sm command.<br>
24-
You can also customize colors (only from MCPE v0.11.0), prefixes, suffixes and interval. (read documentation)
23+
You can set custom automatic messages and you can also send messages with /sm and send popups with /sp commands.<br>
24+
You can also customize colors (only from MCPE v0.11.0), prefixes, suffixes and intervals. (read documentation)
2525

2626
**Commands:**
2727

2828
<dd><i><b>/broadcaster</b> - Broadcaster commands</i></dd>
29-
<dd><i><b>/sendmessage</b> - Send message to specified player (* for all players)</i></dd>
29+
<dd><i><b>/sendmessage</b> - Send message to the specified player (* for all players)</i></dd>
30+
<dd><i><b>/sendpopup</b> - Send popup to the specified player (* for all players)</i></dd>
3031
<br>
3132
**To-Do:**
3233
<br><br>
@@ -68,12 +69,16 @@ Reset ("&r");<br>
6869

6970
```yaml
7071
---
71-
#Available Tags (broadcast messages):
72+
#Available Tags (broadcast messages/popups):
73+
# - {MAXPLAYERS}: Show the maximum number of players supported by the server
74+
# - {TOTALPLAYERS}: Show the number of all online players
7275
# - {PREFIX}: Show prefix
7376
# - {SUFFIX}: Show suffix
7477
# - {TIME}: Show current time
75-
#Available Tags (sendmessage format):
78+
#Available Tags (sendmessage/sendpopup format):
7679
# - {MESSAGE}: Show message
80+
# - {MAXPLAYERS}: Show the maximum number of players supported by the server
81+
# - {TOTALPLAYERS}: Show the number of all online players
7782
# - {PREFIX}: Show prefix
7883
# - {SENDER}: Show sender name
7984
# - {SUFFIX}: Show suffix
@@ -85,27 +90,40 @@ suffix: "[A]"
8590
#Broadcast interval (in seconds)
8691
time: 15
8792
#Command /sm output format
88-
sendmessage-format: "[{TIME}] [{PREFIX}] {SUFFIX} {SENDER}> {MESSAGE}"
93+
sendmessage-format: "&e[{TIME}] &b[{PREFIX}] {SUFFIX} &a{SENDER}&e>&f {MESSAGE}"
8994
#Date\Time format (replaced in {TIME}). For format codes read http://php.net/manual/en/datetime.formats.php
9095
datetime-format: "H:i:s"
9196
#Enable auto broadcast
9297
broadcast-enabled: true
9398
#Broadcast messages (you can set as many as you want)
9499
messages:
95-
- "[{TIME}] [{PREFIX}] 1st message"
96-
- "[{TIME}] [{PREFIX}] 2nd message"
97-
- "[{TIME}] [{PREFIX}] 3rd message"
98-
...
100+
- "&e[{TIME}] &b[{PREFIX}]&f 1st message"
101+
- "&e[{TIME}] &b[{PREFIX}]&f 2nd message"
102+
- "&e[{TIME}] &b[{PREFIX}]&f 3rd message"
103+
#Popup broadcast interval (in seconds)
104+
popup-time: 15
105+
#Popup duration (in seconds)
106+
popup-duration: 5
107+
#Command /sp output format
108+
sendpopup-format: "&a{SENDER}&e>>&f {MESSAGE}"
109+
#Enable auto popup broadcast
110+
popup-broadcast-enabled: true
111+
popups:
112+
- "&aWelcome to your server"
113+
- "&d{TOTALPLAYERS} &eof &d{MAXPLAYERS} &eonline"
114+
- "&bCurrent Time: &a{TIME}"
99115
```
100116
101117
**Commands:**
102118
103119
<dd><b><i>/broadcaster</b> - Broadcaster commands (aliases: [bc, broadcast])</i></dd>
104120
<dd><i><b>/sendmessage &lt;to player (* for all players)&gt; &lt;message&gt;</b> - Send message to player (aliases: [sm, smsg])</i></dd>
121+
<dd><i><b>/sendpopup &lt;to player (* for all players)&gt; &lt;message&gt;</b> - Send popup to player (aliases: [sp, spop])</i></dd>
105122
<br>
106123
**Permissions:**
107124
<br><br>
108125
- <dd><i><b>broadcaster.*</b> - Broadcaster commands permissions.</i>
109126
- <dd><i><b>broadcaster.info</b> - Allows player to read info about Broadcaster.</i>
110127
- <dd><i><b>broadcaster.reload</b> - Allows player to reload Broadcaster.</i>
111128
- <dd><i><b>broadcaster.sendmessage</b> - Allows sending messages to players with /sendmessage command.</i>
129+
- <dd><i><b>broadcaster.sendpopup</b> - Allows sending popups to players with /sendpopup command.</i>

0 commit comments

Comments
 (0)