mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 22:16:34 +00:00
fix: wrong perm check with /back
This commit is contained in:
1 file changed
+1
-1
@@ -226,7 +226,7 @@ public abstract class EventListener {
|
|||||||
// Check the user can use /back to return here
|
// Check the user can use /back to return here
|
||||||
final BackCommand command = plugin.getCommand(BackCommand.class).orElse(null);
|
final BackCommand command = plugin.getCommand(BackCommand.class).orElse(null);
|
||||||
if (command == null || !onlineUser.hasPermission(command.getPermission()) ||
|
if (command == null || !onlineUser.hasPermission(command.getPermission()) ||
|
||||||
!onlineUser.hasPermission(command.getPermission("back"))) {
|
!onlineUser.hasPermission(command.getPermission("death"))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
final Settings.GeneralSettings.BackCommandSettings back = plugin.getSettings().getGeneral().getBackCommand();
|
final Settings.GeneralSettings.BackCommandSettings back = plugin.getSettings().getGeneral().getBackCommand();
|
||||||
|
|||||||
Reference in new issue
Block a user