mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +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
|
||||
final BackCommand command = plugin.getCommand(BackCommand.class).orElse(null);
|
||||
if (command == null || !onlineUser.hasPermission(command.getPermission()) ||
|
||||
!onlineUser.hasPermission(command.getPermission("back"))) {
|
||||
!onlineUser.hasPermission(command.getPermission("death"))) {
|
||||
return;
|
||||
}
|
||||
final Settings.GeneralSettings.BackCommandSettings back = plugin.getSettings().getGeneral().getBackCommand();
|
||||
|
||||
Reference in new issue
Block a user