Ion is the main plugin used on Horizon's End, it is split into 2 plugins, a Velocity Proxy Plugin and a Paper Server Plugin. Ion uses the released Star Legacy Plugin as its foundations, the original source of which can be found at MicleBrick/StarLegacy.
As Ion is developed and maintained specifically for Horizon's End, pre-compiled builds are not distributed and no support will be provided for those wishing to use the plugin for their own server.
If you wish to help develop Ion, then it's best to coordinate with Horizon's End Staff in the Development Discord.
Thanks to all the people who already contributed!
Building the plugin is done like any other Gradle project. The resulting Jar files are located in build/IonProxy.jar
and build/IonServer.jar
.
This repository includes a script that will set up a functioning system comprising of Ion, IonCore, and its required
dependencies. To use it simply ensure that Docker and Docker Compose are installed and running, and then use
testServer
. This script is a bash script, using it on Windows will require Git Bash (Script isn't guaranteed to run on WSL).
To use the test server run sh testServer setup
and then start it with sh testServer run
, if there are any issues try
sh testServer run-fallback
.
You can also start, view logs, and stop the server independently with sh testServer start
, sh testServer logs
,
and sh testServer stop
.
If the test server breaks, use sh testServer reset
to reset it back to it's default state.
Contributions must follow the following rules:
-
Lines should be 120 characters long at most, this is not a strict requirement, lines can be longer.
-
Sometimes there can be name conflicts when importing, import them with a custom name, prefixed by the source. For example "LibAListener" and "LibBListener".
-
Avoid excessive use of
.apply {}
or similar. -
If there is a large block of mostly similar code, align it with spaces, as it makes things more readable.
-
To prevent IntelliJ from complaining, please
@Suppress("Unused")
for any entry points. Don't just tell IntelliJ to ignore them for that class as that only applies to you, not everyone else. -
Code standards are generally higher in
net.horizonsend.ion.server
andnet.horizonsend.ion.proxy
. Code innet.horizonsend.ion.server.legacy
andnet.starlegacy
is generally older code which we intend to replace anyway and as such code standards are lower. -
Don't go out of your way to resolve deprecations in older code, however if you are working with deprecated code, you are expected to update it.
-
Always prefer using Minecraft's internal code instead of the Bukkit API, this is for a few reasons:
- The Bukkit API is slow and full of old legacy code.
- A distant plan is to convert Ion into a Fabric / Quilt Mod.
-
Within the server plugin coordinates should be handled internally as 3 separate numbers, or when returning from a function, a
Triple<T, T, T>
should be used.