diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-10-20 16:12:28 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-10-20 16:15:43 +0100 |
commit | 8ba7a24fd2e9007afda193bbd1b91a40c2c250a3 (patch) | |
tree | 4a2fc1112d5b9bf2ccf7352e218351094ed13ddf | |
parent | ef608c75954b74e54543da86ababe960ce95a41e (diff) | |
download | Essentials-8ba7a24fd2e9007afda193bbd1b91a40c2c250a3.tar Essentials-8ba7a24fd2e9007afda193bbd1b91a40c2c250a3.tar.gz Essentials-8ba7a24fd2e9007afda193bbd1b91a40c2c250a3.tar.lz Essentials-8ba7a24fd2e9007afda193bbd1b91a40c2c250a3.tar.xz Essentials-8ba7a24fd2e9007afda193bbd1b91a40c2c250a3.zip |
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.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandhome.java | 2 |
1 files changed, 1 insertions, 1 deletions
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) |