Check /tpacancel permissions before sending message (#2498)

Fixes #1354.
This commit is contained in:
Glare Masters 2019-04-23 03:22:50 -05:00 committed by md678685
parent 69232c0717
commit d680ed7363

View File

@ -58,7 +58,9 @@ public class Commandtpa extends EssentialsCommand {
}
}
user.sendMessage(tl("requestSent", player.getDisplayName()));
user.sendMessage(tl("typeTpacancel"));
if (user.isAuthorized("essentials.tpacancel")) {
user.sendMessage(tl("typeTpacancel"));
}
}
@Override