Block explicit /home bed, unless user has "essentials.home.bed" permission.

This does not effect the '/home' command when used with no arguments.
In this case, a player will still be sent to the bed home, if they have no Ess home set.
This commit is contained in:
KHobbits 2012-10-20 16:12:28 +01:00
parent ef608c7595
commit 8ba7a24fd2

View File

@ -44,7 +44,7 @@ public class Commandhome extends EssentialsCommand
}
try
{
if ("bed".equalsIgnoreCase(homeName))
if ("bed".equalsIgnoreCase(homeName) && user.isAuthorized("essentials.home.bed"))
{
final Location bed = player.getBedSpawnLocation();
if (bed != null && bed.getBlock().getType() == Material.BED_BLOCK)