2023-04-11 15:35:42 +02:00
|
|
|
From a4b4d829121fafb58860f8d4478e68517d0d8b75 Mon Sep 17 00:00:00 2001
|
2023-02-23 21:51:32 +01:00
|
|
|
From: LinsaFTW <25271111+linsaftw@users.noreply.github.com>
|
|
|
|
Date: Sun, 15 Jan 2023 19:03:34 -0300
|
|
|
|
Subject: [PATCH] List Command Format
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/MessagesConfiguration.java b/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/MessagesConfiguration.java
|
2023-04-11 15:35:42 +02:00
|
|
|
index 4d9ed0c7..d64c5d7a 100644
|
2023-02-23 21:51:32 +01:00
|
|
|
--- a/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/MessagesConfiguration.java
|
|
|
|
+++ b/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/MessagesConfiguration.java
|
2023-04-11 15:35:42 +02:00
|
|
|
@@ -108,6 +108,9 @@ public class MessagesConfiguration extends FlameConfig {
|
2023-02-23 21:51:32 +01:00
|
|
|
setIfUnexistant("flamecord_bip_usage", "&c/bip <player>", configuration);
|
|
|
|
setIfUnexistant("flamecord_bip", "&aInformation about {0}&a:\n&aUUID: &b{1}\n&aIP: &b{2}\n&aPing: &b{3}ms\n&aLocale: &b{4}\n&aView Distance: &b{5}\n&aCurrent Server: &b{6}", configuration);
|
|
|
|
|
|
|
|
+ // FlameCord - List Command Format
|
|
|
|
+ setIfUnexistant("command_list_format", "&aServers:&r", configuration);
|
|
|
|
+
|
|
|
|
for (final String key : configuration.getKeys()) {
|
|
|
|
final Object value = configuration.get(key);
|
|
|
|
|
|
|
|
diff --git a/module/cmd-list/src/main/java/net/md_5/bungee/module/cmd/list/CommandList.java b/module/cmd-list/src/main/java/net/md_5/bungee/module/cmd/list/CommandList.java
|
2023-03-28 01:33:42 +02:00
|
|
|
index 79d0bb21..97b775ee 100644
|
2023-02-23 21:51:32 +01:00
|
|
|
--- a/module/cmd-list/src/main/java/net/md_5/bungee/module/cmd/list/CommandList.java
|
|
|
|
+++ b/module/cmd-list/src/main/java/net/md_5/bungee/module/cmd/list/CommandList.java
|
2023-03-28 01:33:42 +02:00
|
|
|
@@ -27,6 +27,8 @@ public class CommandList extends Command implements TabExecutor
|
2023-02-23 21:51:32 +01:00
|
|
|
public void execute(CommandSender sender, String[] args)
|
|
|
|
{
|
2023-03-14 19:00:06 +01:00
|
|
|
boolean hideEmptyServers = ( args.length == 0 ) || !args[0].equalsIgnoreCase( "all" );
|
2023-02-23 21:51:32 +01:00
|
|
|
+ // FlameCord - List Command Format
|
|
|
|
+ sender.sendMessage( ProxyServer.getInstance().getTranslation( "command_list_format") );
|
2023-03-14 19:00:06 +01:00
|
|
|
|
2023-02-23 21:51:32 +01:00
|
|
|
for ( ServerInfo server : ProxyServer.getInstance().getServers().values() )
|
|
|
|
{
|
|
|
|
--
|
|
|
|
2.37.3.windows.1
|
|
|
|
|