mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-05 20:12:54 +00: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:
parent
80e0b84875
commit
a41a7e60b1
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue