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
commit84f8ff055fcbd7eb1040c12f2c747d4e220810ef (patch)
tree97f272535db530cc4a43c4fe44a5de8802ede1f2
parenteb845cc6dd2e6903e3d8be5bfc14ceccd3cecab8 (diff)
downloadEssentials-84f8ff055fcbd7eb1040c12f2c747d4e220810ef.tar
Essentials-84f8ff055fcbd7eb1040c12f2c747d4e220810ef.tar.gz
Essentials-84f8ff055fcbd7eb1040c12f2c747d4e220810ef.tar.lz
Essentials-84f8ff055fcbd7eb1040c12f2c747d4e220810ef.tar.xz
Essentials-84f8ff055fcbd7eb1040c12f2c747d4e220810ef.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)