[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 acbdab7b08
commit ad873c6867

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;