mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 22:16:22 +00:00
Also check regular /back permission node on respawn, close #234
This commit is contained in:
1 parent
2c9c398d3e
commit
7fabf8fc6f
1 file changed
+3
-1
@@ -145,7 +145,9 @@ public class EventListener {
|
|||||||
*/
|
*/
|
||||||
protected final void handlePlayerRespawn(@NotNull OnlineUser onlineUser) {
|
protected final void handlePlayerRespawn(@NotNull OnlineUser onlineUser) {
|
||||||
// Display the return by death via /back notification
|
// Display the return by death via /back notification
|
||||||
if (plugin.getSettings().backCommandReturnByDeath && onlineUser.hasPermission(Permission.COMMAND_BACK_RETURN_BY_DEATH.node)) {
|
if (plugin.getSettings().backCommandReturnByDeath
|
||||||
|
&& onlineUser.hasPermission(Permission.COMMAND_BACK.node)
|
||||||
|
&& onlineUser.hasPermission(Permission.COMMAND_BACK_RETURN_BY_DEATH.node)) {
|
||||||
plugin.getLocales().getLocale("return_by_death_notification")
|
plugin.getLocales().getLocale("return_by_death_notification")
|
||||||
.ifPresent(onlineUser::sendMessage);
|
.ifPresent(onlineUser::sendMessage);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user