summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorementalo <ementalo@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-04-19 10:49:17 +0000
committerementalo <ementalo@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-04-19 10:49:17 +0000
commit4c7bd8c96ab19f0e79034afaf6c1f580fe0a42a2 (patch)
tree2ee95bc80be2ca850a13a0f6e54e9512c1f2b250
parent7ad287d215165f44dbcfc4746c58136edcb54759 (diff)
downloadEssentials-4c7bd8c96ab19f0e79034afaf6c1f580fe0a42a2.tar
Essentials-4c7bd8c96ab19f0e79034afaf6c1f580fe0a42a2.tar.gz
Essentials-4c7bd8c96ab19f0e79034afaf6c1f580fe0a42a2.tar.lz
Essentials-4c7bd8c96ab19f0e79034afaf6c1f580fe0a42a2.tar.xz
Essentials-4c7bd8c96ab19f0e79034afaf6c1f580fe0a42a2.zip
[trunk] add optional playername param to home. Players with "essentials.homes.others" permission can teleport to other players homes.
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1243 e251c2fe-e539-e718-e476-b85c1f46cddb
-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]