Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-03 14:50:30 +01:00
Reformatting moved color to the top ;(
Dieser Commit ist enthalten in:
Ursprung
cb8ec2ce20
Commit
2905d77206
@ -26,14 +26,6 @@ public class ViaCommandHandler implements ViaVersionCommand, CommandExecutor, Ta
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String color(String string) {
|
|
||||||
try {
|
|
||||||
string = ChatColor.translateAlternateColorCodes('&', string); //Dont replace all & with $ like we did before.
|
|
||||||
} catch (Exception ignored) {
|
|
||||||
}
|
|
||||||
return string;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void registerSubCommand(@NonNull ViaSubCommand command) throws Exception {
|
public void registerSubCommand(@NonNull ViaSubCommand command) throws Exception {
|
||||||
Validate.isTrue(command.name().matches("^[a-z0-9_-]{3,15}$"), command.name() + " is not a valid subcommand name");
|
Validate.isTrue(command.name().matches("^[a-z0-9_-]{3,15}$"), command.name() + " is not a valid subcommand name");
|
||||||
@ -144,4 +136,12 @@ public class ViaCommandHandler implements ViaVersionCommand, CommandExecutor, Ta
|
|||||||
registerSubCommand(new AutoTeamSubCmd());
|
registerSubCommand(new AutoTeamSubCmd());
|
||||||
registerSubCommand(new HelpSubCmd());
|
registerSubCommand(new HelpSubCmd());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static String color(String string) {
|
||||||
|
try {
|
||||||
|
string = ChatColor.translateAlternateColorCodes('&', string); //Dont replace all & with $ like we did before.
|
||||||
|
} catch (Exception ignored) {
|
||||||
|
}
|
||||||
|
return string;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren