Skip to content

Commit 4712849

Browse files
committed
One more quick fix to Announcement Feature
If the messagetype is set to 0, send it with normal message function as to provide line wrapping.
1 parent af731f9 commit 4712849

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fCraft/System/Server.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,7 @@ static void ShowRandomAnnouncement( SchedulerTask task ) {
986986
line = line.Remove(0, 4);
987987
}
988988
string anncmnt = (line.CaselessStarts("&") ? "" : "&R") + Chat.ReplaceTextKeywords(pl, line);
989-
if (pl.Supports(CpeExt.MessageType)) {
989+
if (pl.Supports(CpeExt.MessageType) && messageLine != 0) {
990990
pl.Send(Packet.Message(messageLine, anncmnt, pl));
991991
} else {
992992
pl.Message(anncmnt);

0 commit comments

Comments
 (0)