Restoring old features for message mechanic

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

Assignee Loading
Time tracking Loading