summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandhome.java5
-rw-r--r--Essentials/src/plugin.yml2
2 files changed, 6 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandhome.java b/Essentials/src/com/earth2me/essentials/commands/Commandhome.java
index 0dc92d25a..004cc8e09 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandhome.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandhome.java
@@ -16,6 +16,11 @@ public class Commandhome extends EssentialsCommand
{
user.canAfford(this);
user.teleportCooldown();
+ if(args.length > 1 && user.isAuthorized("essentials.home.others"))
+ {
+ user.teleportToHome(args[0]);
+ return;
+ }
user.teleportToHome(this.getName());
}
}
diff --git a/Essentials/src/plugin.yml b/Essentials/src/plugin.yml
index 9f75ec131..c8c16a949 100644
--- a/Essentials/src/plugin.yml
+++ b/Essentials/src/plugin.yml
@@ -92,7 +92,7 @@ commands:
usage: /<command> [message]
home:
description: Teleport to your home.
- usage: /<command>
+ usage: /<command> <player>
info:
description: Shows information set by the server owner
usage: /<command> [chapter] [page]