1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-12 09:35:26 +02:00

[trunk] args length fix

git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1244 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
ementalo
2011-04-19 10:52:24 +00:00
parent 4c7bd8c96a
commit c648e345d9

View File

@@ -16,7 +16,7 @@ public class Commandhome extends EssentialsCommand
{
user.canAfford(this);
user.teleportCooldown();
if(args.length > 1 && user.isAuthorized("essentials.home.others"))
if(args.length > 0 && user.isAuthorized("essentials.home.others"))
{
user.teleportToHome(args[0]);
return;