I've noticed while testing out a few things that messages to players seem to be sent multiple times. Aspecific example being this: Spoiler: code Code: $list = '§a==========§6§lCitizens§r§a==========§r'; foreach ($this->plugin->npcs as $npc) { $name = $npc["name"]; $id = $npc["npc_id"]; $x = $npc["pos"]["x"]; $y = $npc["pos"]["y"]; $z = $npc["pos"]["z"]; $list .= "\n§b".$name."§r§b ID: §9".$id."§r§b Pos: §a".$x.", ".$y.", ".$z.""; } $list .= "\n§a============================§r"; $sender->sendMessage($list); This code sends the message every time the loop executes, which is not what I wanted or expected. I expected it to simply build the string and then send it once. Spoiler: Picture Has anyone else encountered this problem? A friend of mine who plays MCPE regularly says he has encountered this same issue in single-player as well, But I have seen other servers and plugins that manage to only send the message once. This issue is also persistent in my HelperAI plugin (found here https://github.com/ReduxRedstone/MCPE-HelperAI/). So I'm clearly missing something here, what is it?
As far as I know, this is an MCPE client issue. There are some hacks that some spoons may be using, but I imagine it is pretty messy and will be obsolete once Mojang fixes it. Edit: Did some research, a PR was recently made in PMMP to fix this. See here.