Skip to content

Implemented onTextChange feature#397

Open
ezariago wants to merge 2 commits intoWesJD:masterfrom
ezariago:master
Open

Implemented onTextChange feature#397
ezariago wants to merge 2 commits intoWesJD:masterfrom
ezariago:master

Conversation

@ezariago
Copy link
Copy Markdown

This pull request, which are mostly based off of #232 (thanks @mastercake10), added a textChangeListener that plugins can then listen on to.

I have tested it and made sure everything works correctly, with an exception for 1.7 through 1.8 as the aforementioned versions contains technical limitation explained in #231.

This PR closes #301
Thank you!

import org.bukkit.event.Listener;
import org.bukkit.event.*;
import org.bukkit.event.inventory.*;
import org.bukkit.event.inventory.PrepareAnvilEvent;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PrepareAnvilEvent isn't going to exist in 1.7 and 1.8 like you mentioned in the implementation of registerEvents. You will need to move the registration of that specific event to the version wrappers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

onChanged method

2 participants