Posted April 26, 20205 yr 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?
April 26, 20205 yr Author 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?
April 26, 20205 yr Author 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.