Bug Closed · Resolved

Restoring old features for message mechanic

#6295 opened by Unknown 1 year ago

Unknownreported this bug

Summary

The new message sending mechanism sends messages to all players in the world (@world) if no target is found. For obvious reasons, this implementation causes a lot of problems for players who have updated to the latest MythicMobs version. For example - I have mobs that send messages upon spawn. Until now, these messages were sent to players within a 20-block radius. Now it sends them to all players in the world, because it is rare that a player is nearby at the moment of spawn. I have hundreds, if not thousands of lines using the message mechanic. Adding an inline condition to each of them is a very tedious and error-prone process.

Usage

I propose that this new feature be moved to the message option, which would be set to false by default - e.g. SendToAllPlayersIfNoTarget = true/false

Value

My proposal would restore backward compatibility for the message mechanic.

Priority

HIGH because of broken backwards compatibility.

Implementation

Described it in Usage section

Unknowncommented

There's a possibility this behavior could be related to #1880 if the message mechanic is acting like this, or vice-versa!

Send a complete server log to provide environment information, as well as an example mechanic and the steps to reproduce the behavior you're seeing.

Unknowncommented

Fixed recently!

Sign in to join the discussion.