Jump to content

Recommended Posts

Posted

Using bukkit or other servers that can load plug-ins can easily determine whether there is a choice of "Yes" or "No":

 

if( event.getStatus() != ....SUCCESSFULLY_LOADED ){
          //The player failed to load the texture pack correctly
}

 

But now it’s Forge mod! What should i do? please help me!

 

1.png

Posted
19 minutes ago, diesieben07 said:

When the user accepts or declines the resource pack, a CResourcePackStatusPacket is sent back. Vanilla just ignores this packet and so does Forge. Apparently Bukkit adds some functionality to this response packet.

You can make a pull request to Forge to add an event here or make a feature request on Github.

In both cases please outline your use-case for this.

Can you tell me how to do it? Is there any sample code?

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.