mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-15 11:04:29 +02:00
Added cleanup note
Minecraft server usually shows players around 140-180 range, so changing default /near to 200.
This commit is contained in:
@@ -14,6 +14,7 @@ public class Commandbreak extends EssentialsCommand
|
||||
super("break");
|
||||
}
|
||||
|
||||
//TODO: Switch to use util class
|
||||
@Override
|
||||
public void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception
|
||||
{
|
||||
|
@@ -29,6 +29,7 @@ public class Commandbutcher extends EssentialsCommand
|
||||
super("butcher");
|
||||
}
|
||||
|
||||
//TODO: Tidy - missed this during command cleanup
|
||||
@Override
|
||||
public void run(Server server, CommandSender sender, String commandLabel, String[] args) throws Exception
|
||||
{
|
||||
|
@@ -19,7 +19,7 @@ public class Commandnear extends EssentialsCommand
|
||||
@Override
|
||||
protected void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception
|
||||
{
|
||||
long radius = 100;
|
||||
long radius = 200;
|
||||
User otherUser = null;
|
||||
|
||||
if (args.length > 0)
|
||||
@@ -72,7 +72,7 @@ public class Commandnear extends EssentialsCommand
|
||||
{
|
||||
throw new NotEnoughArgumentsException();
|
||||
}
|
||||
long radius = 100;
|
||||
long radius = 200;
|
||||
if (args.length > 1)
|
||||
{
|
||||
try
|
||||
@@ -111,7 +111,7 @@ public class Commandnear extends EssentialsCommand
|
||||
{
|
||||
output.append(", ");
|
||||
}
|
||||
output.append(player.getDisplayName()).append("§f(§4").append(Math.sqrt(delta)).append("m§f)");
|
||||
output.append(player.getDisplayName()).append("§f(§4").append((long)Math.sqrt(delta)).append("m§f)");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user