mirror of
https://github.com/plexusorg/Module-TFMExtras.git
synced 2024-11-17 17:16:12 +00:00
Moved into messages.yml
This commit is contained in:
parent
a78196d4d5
commit
20da53789d
@ -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
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user