NOVA-Monorepo icon indicating copy to clipboard operation
NOVA-Monorepo copied to clipboard

Allow server-side-only plugins

Open calclavia opened this issue 10 years ago • 10 comments

This will allow people to write server-side stuff if they want to. Right now I haven't tested if NOVA (for MC) works without a client installed.

calclavia avatar Jul 28 '15 17:07 calclavia

We need to hook the ModContainer to catch FML's "can connect to other server?" message and bundle extra information about which NOVA mods are installed.

@NetworkCheckHandler
public boolean checkNetwork(Map<String,String> mods, Side side) {
    return true;
}

asiekierka avatar Jul 29 '15 08:07 asiekierka

Hmm, I think we shouldn't spend much time in this area, trying to compete with sponge is a mistake.

RX14 avatar Jul 29 '15 08:07 RX14

@RX14 - We're not going to be competing with Sponge. We should merely have the ability to have client-side-only as well as server-side-only mods. They have a much better "server plugin"-geared API and we know this.

asiekierka avatar Jul 29 '15 08:07 asiekierka

I agree with that, however spending time on server-side APIs is a mistake in the near future.

RX14 avatar Jul 29 '15 08:07 RX14

I think you should focus on client-side and both sides until v0.2.0 and focus on this when the basic framework is complete. I think ability to use NOVA in general is more important than to use it only on a certain side. But also keep this feature in mind when writing code so that you don't have to rewrite everything when you try to implement this.

Caellian avatar Jul 29 '15 13:07 Caellian

We still need the ability. At the very least, to support something like NEI, which doesn't require clients or the server to have it installed, but will provide additional features if it is.

On Wed, 29 Jul 2015 6:40 pm Chris Hobbs [email protected] wrote:

I agree with that, however spending time on server-side APIs is a mistake in the near future.

— Reply to this email directly or view it on GitHub https://github.com/NOVA-Team/NOVA-Core/issues/149#issuecomment-125881983 .

gjgfuj avatar Jul 30 '15 06:07 gjgfuj

It is very easy in fact. @Mod(acceptableRemoteVersions = "*"). Just add a flag to our annotation and a bit of reflection.

@RX14 Forge isn't spending much time on this either, but basic things such as hooking the chat are entirely possible.

Victorious3 avatar Jul 30 '15 07:07 Victorious3

@Victorious3 - I'd say that we should, at least for a later release, encode the mods installed and their versions in the NOVA version marker somehow.

asiekierka avatar Jul 30 '15 07:07 asiekierka

We do need to be able to have server side only, and client side only mods. Just don't focus on hooks for it.

(and when I say "don't focus" I clearly mean never)

RX14 avatar Jul 30 '15 07:07 RX14

I think that we are actually all agreeing here.

RX14 avatar Jul 30 '15 07:07 RX14