mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-05-29 18:47:32 +00: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:
parent
acbdab7b08
commit
ad873c6867
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ public class Commandhome extends EssentialsCommand
|
||||||
{
|
{
|
||||||
user.canAfford(this);
|
user.canAfford(this);
|
||||||
user.teleportCooldown();
|
user.teleportCooldown();
|
||||||
if(args.length > 1 && user.isAuthorized("essentials.home.others"))
|
if(args.length > 0 && user.isAuthorized("essentials.home.others"))
|
||||||
{
|
{
|
||||||
user.teleportToHome(args[0]);
|
user.teleportToHome(args[0]);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue