mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
5 files changed
+12
-6
No files matched your search
@@ -35,7 +35,10 @@ public class BackCommand extends InGameCommand {
|
||||
|
||||
protected BackCommand(@NotNull HuskHomes plugin) {
|
||||
super("back", List.of(), "", plugin);
|
||||
addAdditionalPermissions(Map.of("death", false));
|
||||
addAdditionalPermissions(Map.of(
|
||||
"death", false,
|
||||
"previous", false
|
||||
));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -62,7 +62,10 @@ public class Teleport {
|
||||
this.economyActions = actions;
|
||||
this.async = plugin.getSettings().doAsynchronousTeleports();
|
||||
this.updateLastPosition = updateLastPosition && plugin.getCommand(BackCommand.class)
|
||||
.map(command -> executor.hasPermission(command.getPermission()))
|
||||
.map(command ->
|
||||
executor.hasPermission(command.getPermission()) &&
|
||||
executor.hasPermission(command.getPermission("previous"))
|
||||
)
|
||||
.orElse(false);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user