From 8ba7a24fd2e9007afda193bbd1b91a40c2c250a3 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Sat, 20 Oct 2012 16:12:28 +0100 Subject: 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. --- Essentials/src/com/earth2me/essentials/commands/Commandhome.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandhome.java b/Essentials/src/com/earth2me/essentials/commands/Commandhome.java index d7046819f..8419f05f4 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandhome.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandhome.java @@ -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) -- cgit v1.2.3