mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 01:27:40 +01: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
@ -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 New Issue
Block a user