Skip to content

Crystalzzzz/Hehehehaw

 
 

Repository files navigation

Ion

Ion is the main plugin used on Horizon's End, it is split into 2 plugins, a Waterfall 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.

Thanks to all the people who already contributed!

Building & Testing

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.

Contributing

Contributions must follow the following rules:

  1. Lines should be 120 characters long at most, this is not a strict requirement, lines can be longer.

  2. Sometimes there can be name conflicts when importing, import them with a custom name, prefixed by the source. For example "LibAListener" and "LibBListener".

  3. Avoid excessive use of .apply {} or similar.

  4. If there is a large block of mostly similar code, align it with spaces, as it makes things more readable.

  5. 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.

  6. 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.

  7. 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.

About

Horizon's End's Custom Plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 99.4%
  • Other 0.6%