mirror of
https://github.com/plexusorg/Module-TFMExtras.git
synced 2024-11-17 09:06:13 +00:00
Remove broken command
This commit is contained in:
parent
d8ee396b12
commit
9c545d1cc5
@ -23,7 +23,7 @@ repositories {
|
|||||||
dependencies {
|
dependencies {
|
||||||
compileOnly("org.projectlombok:lombok:1.18.34")
|
compileOnly("org.projectlombok:lombok:1.18.34")
|
||||||
annotationProcessor("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")
|
implementation("org.apache.commons:commons-lang3:3.17.0")
|
||||||
compileOnly("dev.plex:server:1.5-SNAPSHOT")
|
compileOnly("dev.plex:server:1.5-SNAPSHOT")
|
||||||
compileOnly("com.infernalsuite.aswm:api:1.20.6-R0.1-SNAPSHOT") {
|
compileOnly("com.infernalsuite.aswm:api:1.20.6-R0.1-SNAPSHOT") {
|
||||||
|
@ -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<String> smartTabComplete(@NotNull CommandSender commandSender, @NotNull String s, @NotNull String[] strings) throws IllegalArgumentException
|
|
||||||
{
|
|
||||||
return Collections.emptyList();
|
|
||||||
}
|
|
||||||
}
|
|
@ -116,7 +116,6 @@ public class SlimeWorldHook implements IHook<SlimePlugin>
|
|||||||
{
|
{
|
||||||
SlimeWorld world = this.plugin().loadWorld(this.loader, s, false, slimePropertyMap);
|
SlimeWorld world = this.plugin().loadWorld(this.loader, s, false, slimePropertyMap);
|
||||||
this.plugin().loadWorld(world);
|
this.plugin().loadWorld(world);
|
||||||
this.loader.unlockWorld(s);
|
|
||||||
} catch (UnknownWorldException | WorldLockedException | CorruptedWorldException | NewerFormatException |
|
} catch (UnknownWorldException | WorldLockedException | CorruptedWorldException | NewerFormatException |
|
||||||
IllegalArgumentException ex)
|
IllegalArgumentException ex)
|
||||||
{
|
{
|
||||||
@ -198,7 +197,6 @@ public class SlimeWorldHook implements IHook<SlimePlugin>
|
|||||||
{
|
{
|
||||||
SlimeWorld world = this.plugin().loadWorld(this.loader, uuid.toString(), false, slimePropertyMap);
|
SlimeWorld world = this.plugin().loadWorld(this.loader, uuid.toString(), false, slimePropertyMap);
|
||||||
this.plugin().loadWorld(world);
|
this.plugin().loadWorld(world);
|
||||||
this.loader.unlockWorld(uuid.toString());
|
|
||||||
} catch (WorldLockedException | CorruptedWorldException | NewerFormatException | UnknownWorldException |
|
} catch (WorldLockedException | CorruptedWorldException | NewerFormatException | UnknownWorldException |
|
||||||
IOException | IllegalArgumentException ex)
|
IOException | IllegalArgumentException ex)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user