mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-22 02:25:41 +01:00
Updated Developer API Starter (markdown)
parent
5c1e8e4088
commit
bc43cdbf89
@ -50,7 +50,7 @@ If you wish to download the dependency to classpath, you can do the following:
|
||||
1. Select the `Multiverse-[MODULE]-[VERSION].jar`
|
||||
|
||||
## Getting the Multiverse plugin instances
|
||||
* Multiverse-Core:
|
||||
Multiverse-Core:
|
||||
```java
|
||||
MultiverseCore core = (MultiverseCore) Bukkit.getServer().getPluginManager().getPlugin("Multiverse-Core");
|
||||
```
|
||||
@ -83,3 +83,8 @@ softdepend: ['Multiverse-Core', 'Multiverse-Inventories']
|
||||
It is also possible to listen to [`PluginEnableEvent`](https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/event/server/PluginEnableEvent.html) and [`PluginDisableEvent`](https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/event/server/PluginDisableEvent.html) to detect when a Multiverse module is enabled/disabled.
|
||||
|
||||
#### Next steps
|
||||
We have curated a bunch of common usages for the various multiverse modules:
|
||||
* [Multiverse-Core API Usage](API-Usages)
|
||||
* [Multiverse-Inventories API Usage](API-Usages-(Inventories))
|
||||
* [Multiverse-Portals API Usage](API-Usages-(Portals))
|
||||
* [Multiverse-NetherPortals API Usage](API-Usages-(NetherPortals))
|
Loading…
Reference in New Issue
Block a user