Jump to content

Recommended Posts

Posted

Can data be transferred between mod and plugin?

For example, can plugin use items and enchantments made by mod?

If I have economy plugin, can mod read and write amount of money a player has?

Posted
20 minutes ago, diesieben07 said:

Sure, its all just Java code running in the same JVM.

How can it be done?

Is it based on packets or can I simply import each other as library in IDE?

Posted
6 hours ago, diesieben07 said:

Both will be running on the server in this case.

I am creating a mod that adds jobs.

I want to use an economy plugin on a server in order to make enchanting and repairing cost money.

I will write down what I am thinking about how to integrate mod and plugin so please correct me if I am wrong.

Client does not know about the plugin so a jar that goes under client's folder should not contain anything about the plugin.

On the other hand, a jar that goes under server's folder can call methods from the plugin.

So I need to create two jars which are basically same but one uses the plugin as a library.

When a player does not have enough balance, right clicking on enchantment table or anvil should be cancelled.

This is handled by server mod, as well as any other actions that require data from the plugin.

If this is completely wrong, please tell me what is the correct way or provide me with an example.

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.