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