Skip to content

FQA꞉ Supports

Arie edited this page Dec 6, 2023 · 8 revisions

Enums

1. How to use enums from other plugins?

Enums are only registered when the enum's OvommandHook is registered. Assuming the other plugin registers Ovommand properly, you need the other plugin to load before your plugin is loaded. To do this, add a new tag to plugin.yml, named depend Eg: OvoTest2 needs to use an enum of OvoTest1

name: OvoTest
version: 0.0.1
main: arie\test\Main
api: 5.4.3
name: OvoTest2
version: 0.0.1
main: arie\test2\Main
api: 5.4.3

depend:
- OvoTest

After doing that, you can use the enum normally without getting crashes if the enums exist.

2. Can you overwrite default enums?

Not to the default hardcoded enum, but you can change the default soft enums...


ovo_warning
This wiki is under construction....