Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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?

  • 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?

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

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.