Merge remote-tracking branch 'origin/master'

This commit is contained in:
William committed 2023-06-01 10:37:11 +01:00
commit 9ca8492105
5 files changed
+12 -6

No files matched your search

+2 -2
View File
@@ -26,11 +26,11 @@ dependencies {
compileOnly 'org.jetbrains:annotations:24.0.1'
compileOnly 'com.google.guava:guava:32.0.0-jre'
compileOnly 'com.github.plan-player-analytics:Plan:5.5.1923'
compileOnly 'com.github.plan-player-analytics:Plan:5.5.2391'
compileOnly 'com.github.BlueMap-Minecraft:BlueMapAPI:2.5.0'
compileOnly 'us.dynmap:DynmapCoreAPI:3.4'
compileOnly 'maven.modrinth:pl3xmap:1.19.4-433'
testImplementation 'com.github.plan-player-analytics:Plan:5.5.1923'
testImplementation 'com.github.plan-player-analytics:Plan:5.5.2391'
testImplementation 'com.github.yuriy-g:simple-java-plot:5c502c2e98'
}
@@ -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);
}