Giter VIP home page Giter VIP logo

ion's Introduction

Ion

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 & 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. Code standards are generally higher in net.horizonsend.ion.server and net.horizonsend.ion.proxy. Code in net.horizonsend.ion.server.legacy and net.starlegacy is generally older code which we intend to replace anyway and as such code standards are lower.

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

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.