mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-06-22 22:10:59 +00:00
Check /tpacancel permissions before sending message (#2498)
Fixes #1354.
This commit is contained in:
parent
69232c0717
commit
d680ed7363
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue