mirror of
https://github.com/PaperMC/Waterfall.git
synced 2024-11-16 23:35:22 +01:00
37 lines
2.0 KiB
Diff
37 lines
2.0 KiB
Diff
From 10b29c21ab86559a31b3229ddd2f9bf156c01c97 Mon Sep 17 00:00:00 2001
|
|
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
|
|
index e42bb29d5..555319a7f 100644
|
|
--- a/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/MessagesConfiguration.java
|
|
+++ b/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/MessagesConfiguration.java
|
|
@@ -107,6 +107,9 @@ public class MessagesConfiguration extends FlameConfig {
|
|
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
|
|
index c4ac9173f..10a0cf4a8 100644
|
|
--- 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
|
|
@@ -28,6 +28,8 @@ public class CommandList extends Command implements TabExecutor
|
|
public void execute(CommandSender sender, String[] args)
|
|
{
|
|
boolean hideEmptyServers = ( args.length == 0 ) || !args[0].equalsIgnoreCase( "all" );
|
|
+ // FlameCord - List Command Format
|
|
+ sender.sendMessage( ProxyServer.getInstance().getTranslation( "command_list_format") );
|
|
|
|
for ( ServerInfo server : ProxyServer.getInstance().getServers().values() )
|
|
{
|
|
--
|
|
2.37.3.windows.1
|
|
|