mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-03-12 14:49:46 +01:00
Added cleanup note
Minecraft server usually shows players around 140-180 range, so changing default /near to 200.
This commit is contained in:
parent
f9905f9953
commit
aa5f819d7b
@ -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)");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user