summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-10-20 16:12:28 +0100
committerKHobbits <rob@khobbits.co.uk>2012-10-20 16:15:43 +0100
commit8ba7a24fd2e9007afda193bbd1b91a40c2c250a3 (patch)
tree4a2fc1112d5b9bf2ccf7352e218351094ed13ddf
parentef608c75954b74e54543da86ababe960ce95a41e (diff)
downloadEssentials-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.java2
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)