diff --git a/build.gradle.kts b/build.gradle.kts index 7a76160..e2149e2 100755 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -23,7 +23,7 @@ repositories { dependencies { compileOnly("org.projectlombok:lombok:1.18.34") annotationProcessor("org.projectlombok:lombok:1.18.34") - compileOnly("io.papermc.paper:paper-api:1.21.1-R0.1-SNAPSHOT") + compileOnly("io.papermc.paper:paper-api:1.21.3-R0.1-SNAPSHOT") implementation("org.apache.commons:commons-lang3:3.17.0") compileOnly("dev.plex:server:1.5-SNAPSHOT") compileOnly("com.infernalsuite.aswm:api:1.20.6-R0.1-SNAPSHOT") { diff --git a/src/main/java/dev/plex/extras/command/AttributeListCommand.java b/src/main/java/dev/plex/extras/command/AttributeListCommand.java deleted file mode 100755 index 0835e3e..0000000 --- a/src/main/java/dev/plex/extras/command/AttributeListCommand.java +++ /dev/null @@ -1,32 +0,0 @@ -package dev.plex.extras.command; - -import dev.plex.command.PlexCommand; -import dev.plex.command.annotation.CommandParameters; -import dev.plex.command.annotation.CommandPermissions; -import java.util.Arrays; -import java.util.Collections; -import java.util.List; -import net.kyori.adventure.text.Component; -import org.apache.commons.lang3.StringUtils; -import org.bukkit.attribute.Attribute; -import org.bukkit.command.CommandSender; -import org.bukkit.entity.Player; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - -@CommandParameters(name = "attributes", description = "Lists all possible attributes", aliases = "attributelist,attrlist") -@CommandPermissions(permission = "plex.tfmextras.attrlist") -public class AttributeListCommand extends PlexCommand -{ - @Override - protected Component execute(@NotNull CommandSender sender, @Nullable Player player, @NotNull String[] args) - { - return messageComponent("attributeList", StringUtils.join(Arrays.stream(Attribute.values()).map(Enum::name).toList(), ", ")); - } - - @Override - public @NotNull List smartTabComplete(@NotNull CommandSender commandSender, @NotNull String s, @NotNull String[] strings) throws IllegalArgumentException - { - return Collections.emptyList(); - } -} diff --git a/src/main/java/dev/plex/extras/hook/SlimeWorldHook.java b/src/main/java/dev/plex/extras/hook/SlimeWorldHook.java index 0f21089..9ad1332 100644 --- a/src/main/java/dev/plex/extras/hook/SlimeWorldHook.java +++ b/src/main/java/dev/plex/extras/hook/SlimeWorldHook.java @@ -116,7 +116,6 @@ public class SlimeWorldHook implements IHook { SlimeWorld world = this.plugin().loadWorld(this.loader, s, false, slimePropertyMap); this.plugin().loadWorld(world); - this.loader.unlockWorld(s); } catch (UnknownWorldException | WorldLockedException | CorruptedWorldException | NewerFormatException | IllegalArgumentException ex) { @@ -198,7 +197,6 @@ public class SlimeWorldHook implements IHook { SlimeWorld world = this.plugin().loadWorld(this.loader, uuid.toString(), false, slimePropertyMap); this.plugin().loadWorld(world); - this.loader.unlockWorld(uuid.toString()); } catch (WorldLockedException | CorruptedWorldException | NewerFormatException | UnknownWorldException | IOException | IllegalArgumentException ex) {