mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-03 06:57:39 +01: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("requestSent", player.getDisplayName()));
|
||||||
user.sendMessage(tl("typeTpacancel"));
|
if (user.isAuthorized("essentials.tpacancel")) {
|
||||||
|
user.sendMessage(tl("typeTpacancel"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user