Moved into messages.yml

This commit is contained in:
james
2024-05-31 03:35:43 +01:00
parent a78196d4d5
commit 20da53789d
2 changed files with 2 additions and 10 deletions
@@ -3,7 +3,6 @@ package dev.plex.extras.command;
import dev.plex.command.PlexCommand;
import dev.plex.command.annotation.CommandParameters;
import dev.plex.command.annotation.CommandPermissions;
import dev.plex.util.PlexLog;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.minimessage.MiniMessage;
import org.bukkit.Location;
@@ -79,7 +78,7 @@ public class ExpelCommand extends PlexCommand
if (!pushedPlayers.isEmpty())
{
return MiniMessage.miniMessage().deserialize("<gray>Pushed away players: <white><em>" + String.join("<reset><gray>, <white><em>", pushedPlayers));
return messageComponent("playersExpelled", String.join("<reset><gray>, <white><em>", pushedPlayers));
}
return null;
@@ -88,14 +87,6 @@ public class ExpelCommand extends PlexCommand
@Override
public @NotNull List<String> smartTabComplete(@NotNull CommandSender sender, @NotNull String alias, @NotNull String[] args)
{
if (args.length == 1)
{
return Collections.singletonList("<radius>");
}
else if (args.length == 2)
{
return Collections.singletonList("<strength>");
}
return Collections.emptyList();
}
}