-
-
Notifications
You must be signed in to change notification settings - Fork 15
API Usage
Alessio Gravili edited this page Oct 10, 2021
·
25 revisions
There's a nice tutorial here: https://jitpack.io/#AlessioGr/NotQuests/v1.5.8
First, add NotQuests as depend:
or softdepend:
into you plugin.yml.
Then, access the instance with NotQuests.getInstance()
and do whatever you want with it 😄
You can easily add your own Objectives to NotQuests (either directly or via the API) with, for example, NotQuests.getInstance().getObjectiveManager().registerObjective("jumpobjective", JumpObjective.class);
with JumpObjective extending "Objective" and being similar to all the other objective classes. Just copy the structure.
Only thing which is missing are commands & command completions. At the moment, they would manually need to be added to "ObjectivesAdminCommand".