developer-wiki/Making a new event
This tutorial requires you have:
Any java editor
Medium Java knowledge
Making new events isn't such a hard task. Here's how you do it:
First, download the source code here
Then make your code where the other events are, and try to put it in the same category. Look at the other events for reference
If your event is a main:
Add one to numberOfMajorAlterations
Make your code inside the if (m == 1) statement on newMajor(CommandSender sender). Look at the others for reference
If your event is a minor:
Add one to numberOfMinorAlterations
Make your code inside the if (z == 1) statement on newMinor(CommandSender sender). Look at the others for reference
Export it and your done!
First, download the source code here
Then make your code where the other events are, and try to put it in the same category. Look at the other events for reference
If your event is a main:
Add one to numberOfMajorAlterations
Make your code inside the if (m == 1) statement on newMajor(CommandSender sender). Look at the others for reference
If your event is a minor:
Add one to numberOfMinorAlterations
Make your code inside the if (z == 1) statement on newMinor(CommandSender sender). Look at the others for reference
Export it and your done!
Comments