mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2024-11-14 19:15:08 -05:00
Minor changes
This commit is contained in:
parent
09bbdb41e2
commit
e7dba42792
3 changed files with 10 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
|||
plugins {
|
||||
id "java"
|
||||
id "maven-publish"
|
||||
id "net.kyori.blossom" version "1.3.1"
|
||||
}
|
||||
|
||||
java.toolchain.languageVersion = JavaLanguageVersion.of(8)
|
||||
|
@ -60,6 +61,10 @@ dependencies {
|
|||
include "net.raphimc.netminecraft:all:2.2.2"
|
||||
}
|
||||
|
||||
blossom {
|
||||
replaceToken("\${version}", project.version, "src/main/java/net/raphimc/viaproxy/ViaProxy.java")
|
||||
}
|
||||
|
||||
java {
|
||||
withSourcesJar()
|
||||
}
|
||||
|
|
|
@ -29,6 +29,8 @@ import java.awt.*;
|
|||
|
||||
public class ViaProxy {
|
||||
|
||||
public static final String VERSION = "${version}";
|
||||
|
||||
public static NetServer currentProxyServer;
|
||||
public static Thread loaderThread;
|
||||
public static ChannelGroup c2pChannels;
|
||||
|
@ -46,7 +48,7 @@ public class ViaProxy {
|
|||
public static void injectedMain(String[] args) throws InterruptedException {
|
||||
Logger.setup();
|
||||
ConsoleHandler.hookConsole();
|
||||
Logger.LOGGER.info("Initializing ViaProxy...");
|
||||
Logger.LOGGER.info("Initializing ViaProxy v" + VERSION + "...");
|
||||
VersionEnum.init();
|
||||
setNettyParameters();
|
||||
MCPipeline.useOptimizedPipeline();
|
||||
|
|
|
@ -61,7 +61,7 @@ public class ViaProxyUI extends JFrame {
|
|||
}
|
||||
|
||||
private void initWindow() {
|
||||
this.setTitle("ViaProxy");
|
||||
this.setTitle("ViaProxy v" + ViaProxy.VERSION);
|
||||
this.setIconImage(this.icon.getImage());
|
||||
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
this.setSize(500, 370);
|
||||
|
@ -131,7 +131,7 @@ public class ViaProxyUI extends JFrame {
|
|||
this.contentPane.add(this.serverVersion);
|
||||
}
|
||||
{
|
||||
JLabel bindPortLabel = new JLabel("Bind Port:");
|
||||
JLabel bindPortLabel = new JLabel("Local Port:");
|
||||
bindPortLabel.setBounds(10, 150, 100, 20);
|
||||
this.contentPane.add(bindPortLabel);
|
||||
|
||||
|
|
Loading…
Reference in a new issue