Jump to content

Recommended Posts

Posted

Hello. For some reasons I need to make distinct jar files for server and client. And I choose to split code into two source sets (main and client). So there is my gradle.build file:

  Reveal hidden contents

Task dependency order seems to be correct:

  Reveal hidden contents

But client jar is not passed to reobf task and I can't find how to do this. Any suggestions?

Posted

If I say about reasons, then I'm afraid I will not get an answer to the question, since the discussion will shift in a completely different area. We may discuss the reasons for this architecture later, when I get an answer to my question.

Posted

ReobfTask have special method that add jar file to processing queue. So I simply use it in my task and work is done:

  Reveal hidden contents

 

Now about reasons.

1. This mod intended to use only by sole private minecraft server. There is no problems with distribution because there is no distribution at all.

2. Mod implements anti-cheat and other security measures. There is no reasons to expose security check details to the client side.

Posted

No. Client side collect information and send it to the server. Server side check that data and make decisions.

Pure client side checks easy to bypass and because of that I need different code on client and server.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.