mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-01-07 07:41:03 +00:00
[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
This commit is contained in:
parent
a214fcf1c1
commit
acbdab7b08
2 changed files with 6 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue