@@ -10,7 +10,7 @@ PocketMine-MP plugins
10
10
11
11
## Requirements
12
12
13
- PocketMine-MP Alpha_1.4 API 1.11 .0
13
+ PocketMine-MP Alpha_1.5 API 1.12 .0
14
14
15
15
## Overview
16
16
@@ -20,13 +20,14 @@ PocketMine-MP Alpha_1.4 API 1.11.0
20
20
21
21
*** This Plugin uses the New API. You can't install it on old versions of PocketMine.***
22
22
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)
25
25
26
26
** Commands:**
27
27
28
28
<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 >
30
31
<br >
31
32
** To-Do:**
32
33
<br ><br >
@@ -68,12 +69,16 @@ Reset ("&r");<br>
68
69
69
70
``` yaml
70
71
---
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
72
75
# - {PREFIX}: Show prefix
73
76
# - {SUFFIX}: Show suffix
74
77
# - {TIME}: Show current time
75
- # Available Tags (sendmessage format):
78
+ # Available Tags (sendmessage/sendpopup format):
76
79
# - {MESSAGE}: Show message
80
+ # - {MAXPLAYERS}: Show the maximum number of players supported by the server
81
+ # - {TOTALPLAYERS}: Show the number of all online players
77
82
# - {PREFIX}: Show prefix
78
83
# - {SENDER}: Show sender name
79
84
# - {SUFFIX}: Show suffix
@@ -85,27 +90,40 @@ suffix: "[A]"
85
90
# Broadcast interval (in seconds)
86
91
time : 15
87
92
# 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}"
89
94
# Date\Time format (replaced in {TIME}). For format codes read http://php.net/manual/en/datetime.formats.php
90
95
datetime-format : " H:i:s"
91
96
# Enable auto broadcast
92
97
broadcast-enabled : true
93
98
# Broadcast messages (you can set as many as you want)
94
99
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}"
99
115
` ` `
100
116
101
117
**Commands:**
102
118
103
119
<dd><b><i>/broadcaster</b> - Broadcaster commands (aliases: [bc, broadcast])</i></dd>
104
120
<dd><i><b>/sendmessage <to player (* for all players)> <message></b> - Send message to player (aliases: [sm, smsg])</i></dd>
121
+ <dd><i><b>/sendpopup <to player (* for all players)> <message></b> - Send popup to player (aliases: [sp, spop])</i></dd>
105
122
<br>
106
123
**Permissions:**
107
124
<br><br>
108
125
- <dd><i><b>broadcaster.*</b> - Broadcaster commands permissions.</i>
109
126
- <dd><i><b>broadcaster.info</b> - Allows player to read info about Broadcaster.</i>
110
127
- <dd><i><b>broadcaster.reload</b> - Allows player to reload Broadcaster.</i>
111
128
- <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