summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2011-12-10 01:29:23 +0000
committerKHobbits <rob@khobbits.co.uk>2011-12-10 04:12:22 +0000
commitaa5f819d7bdf58a00378220eb4f42e46a6aebd15 (patch)
tree62cc8d54557a68ef68dab1ef9d0b84fcbdd9a4c8
parentf9905f99532b2ae2f9426119f581d565586c2d50 (diff)
downloadEssentials-aa5f819d7bdf58a00378220eb4f42e46a6aebd15.tar
Essentials-aa5f819d7bdf58a00378220eb4f42e46a6aebd15.tar.gz
Essentials-aa5f819d7bdf58a00378220eb4f42e46a6aebd15.tar.lz
Essentials-aa5f819d7bdf58a00378220eb4f42e46a6aebd15.tar.xz
Essentials-aa5f819d7bdf58a00378220eb4f42e46a6aebd15.zip
Added cleanup note
Minecraft server usually shows players around 140-180 range, so changing default /near to 200.
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandbreak.java1
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandbutcher.java1
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandnear.java6
3 files changed, 5 insertions, 3 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandbreak.java b/Essentials/src/com/earth2me/essentials/commands/Commandbreak.java
index 9c0a34698..a1db8e0b2 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandbreak.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandbreak.java
@@ -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
{
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandbutcher.java b/Essentials/src/com/earth2me/essentials/commands/Commandbutcher.java
index b5f43e2d9..fa628f8e0 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandbutcher.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandbutcher.java
@@ -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
{
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandnear.java b/Essentials/src/com/earth2me/essentials/commands/Commandnear.java
index 18fb798af..0afcf1650 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandnear.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandnear.java
@@ -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)");
}
}
}