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

View File

@ -121,6 +121,7 @@ public class TFMExtras extends PlexModule
addDefaultMessage("cantVisitIsland", "<red>You can't visit this player's island!");
addDefaultMessage("islandMemberExists", "<red>This player is already a member of your island!");
addDefaultMessage("receivedInviteForIsland", "<green>You have been invited to join "); //TODO: Finish this message... my laptop isn't liking minecraft so I can't do formatting for it, and do receivedInviteForIsland message
addDefaultMessage("playersExpelled", "<gray>Pushed away players: <white><em>{0}", "0 - The list of players");
}
@Override

View File

@ -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();
}
}