minecraft8997 / TelnetHelper

A thing to improve Igor725's Telnet game

Repository from Github https://github.comminecraft8997/TelnetHelperRepository from Github https://github.comminecraft8997/TelnetHelper

TelnetHelper

jenkins build code contains potatos

What is this project about?

Let's say this is an addon to Igor725's Telnet Battleship game (clickable link to their GitHub repository) which implements counting and limiting the number of active connections... being a proxy (tunnel) between clients and the origin server. It's also able to kick inactive players (the read timeout for both sides is set to 7 minutes).

Is this a joke?

Maybe. At least I've finally implemented something similar to Non-blocking IO from scratch. It did not look that hard though, just always wanted to try this out at some point.

What if I say that the online player counter was introduced in 1e60076?

If you continue asking such questions & being against my infrastructure solutions, you will be BANNED on my super secret Minecraft: Java Edition server. Just tell me your IP, so I can blacklist it.

How to run it?

Simply use java -jar TelnetHelper.jar. Personally I would recommend using XX:+UseG1GC flag if you are on Java 8. Make sure you have Battleship server listening on port 2426 and it is unavailable externally. The proxy is listening on 2425 port.

Building

Step 1. Ensure you have JDK 8 (or above) installed.

Step 2. Download the project.

Step 3. Import it into IntelliJ IDEA.

Step 4. File -> Project Structure -> Artifacts -> Add -> JAR -> From modules with dependencies...

Step 5. Select the main class to ru.deewend.telnethelper.Main, press OK.

Step 6. Press Apply.

Step 7. Build -> Build Artifacts... -> TelnetHelper:jar -> Build.

Step 8. Your jarfile will be located in the out/artifacts/TelnetHelper_jar folder, enjoy! <3

Compatibility

Not compatible with Java 7 and earlier versions, however the source code can be easily modified, so it becomes runnable on Java 5+. If my memory serves me right, the only thing that prevents it from being compiled to outdated Java versions is the usage of diamond operator.

Poorly compatible with Battleship server since the commit 1e60076 (when Igor725 has implemented their own support for counting and displaying the number of online players).

Tested on 5f3c129 and 14c5545.

About

A thing to improve Igor725's Telnet game

License:MIT License


Languages

Language:Java 100.0%