mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-01-03 22:08:28 +00:00
Fix incorrect radius check in /me command (#3848)
This commit is contained in:
parent
001213ee2c
commit
7bb12fd33c
1 changed files with 2 additions and 1 deletions
|
@ -40,12 +40,13 @@ public class Commandme extends EssentialsCommand {
|
|||
message = FormatUtil.formatMessage(user, "essentials.chat", message);
|
||||
|
||||
user.setDisplayNick();
|
||||
final int radius = ess.getSettings().getChatRadius();
|
||||
long radius = ess.getSettings().getChatRadius();
|
||||
final String toSend = tl("action", user.getDisplayName(), message);
|
||||
if (radius < 1) {
|
||||
ess.broadcastMessage(user, toSend);
|
||||
return;
|
||||
}
|
||||
radius *= radius;
|
||||
|
||||
final World world = user.getWorld();
|
||||
final Location loc = user.getLocation();
|
||||
|
|
Loading…
Reference in a new issue