1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-12 17:45:08 +02:00

[trunk] Don't show /back message on death if command is disabled

git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1380 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
snowleo
2011-05-08 23:38:40 +00:00
parent fae5c8624c
commit 1b8fef0bf1

View File

@@ -73,7 +73,7 @@ public class EssentialsEntityListener extends EntityListener
if (event.getEntity() instanceof Player) if (event.getEntity() instanceof Player)
{ {
User user = ess.getUser(event.getEntity()); User user = ess.getUser(event.getEntity());
if (user.isAuthorized("essentials.back.ondeath")) if (user.isAuthorized("essentials.back.ondeath") && !ess.getSettings().isCommandDisabled("back"))
{ {
user.setLastLocation(); user.setLastLocation();
user.sendMessage("§7Use the /back command to return to your death point"); user.sendMessage("§7Use the /back command to return to your death point");