New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Confusion between registerEvent() and registerEvents() #2796
Comments
I know that I struggled with this when I first started updating and writing plugins. I agree that this change would read better and make each function more transparent about what it does. |
Personally I was far more confused by onCommand() but that's a topic for a separate issue. |
Now, this is gonna break plugins :D |
It's only one change lol. Wait till 4.0 hit the bell lol |
bUkKiT hAs aN OuTstAnDinG aPi deSiGn |
better then rename it to i think, it becomes more understandable than just "registerHandler" and "registerListener", idk. if we think about fact, that these functions are in «PluginManager» |
yes, indeed |
Description
It has long been a problem especially to the people who are new in PocketMine field between
registerEvent()
andregisterEvents()
.That one addition of
s
makes it a completely different function from the other. The reason for that is the confusing/conflicting names given to both these methods.Alternative methods:
Following changes could be made to solve this confusion.
The text was updated successfully, but these errors were encountered: