#3153: Add color support to the end command

This commit is contained in:
Outfluencer 2021-07-18 02:22:17 +02:00 committed by GitHub
parent 5db276eb52
commit a283aaf724
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,7 @@ package net.md_5.bungee.command;
import com.google.common.base.Joiner;
import net.md_5.bungee.BungeeCord;
import net.md_5.bungee.api.ChatColor;
import net.md_5.bungee.api.CommandSender;
import net.md_5.bungee.api.plugin.Command;
@ -25,7 +26,7 @@ public class CommandEnd extends Command
BungeeCord.getInstance().stop();
} else
{
BungeeCord.getInstance().stop( Joiner.on( ' ' ).join( args ) );
BungeeCord.getInstance().stop( ChatColor.translateAlternateColorCodes( '&', Joiner.on( ' ' ).join( args ) ) );
}
}
}