Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicDungeons MythicDungeons
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 93
    • Issues 93
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicDungeonsMythicDungeons
  • Wiki
  • Introduction to API

Last edited by Aestrus Mar 26, 2024
Page history
This is an old version of this page. You can view the most recent version or browse the history.

Introduction to API

DISCLAIMER
The API update will only be available in Mythic Dungeons 1.3.0+!

Dependency Setup

Maven

Put the following in your pom.xml within their respective sections.

Repository

<repository>
     <id>aestrus-releases</id>
     <name>Aestrus's Repository</name>
     <url>https://maven.aestrus.io/releases</url>
</repository>

Dependency

<dependency>
     <groupId>net.playavalon</groupId>
     <artifactId>MythicDungeons</artifactId>
     <version>1.3.0-SNAPSHOT</version>
     <scope>provided</scope>
</dependency>

Note: The scope must be provided for the dependency.

Gradle

Coming Soon

Accessing API Methods

Utilizing methods built in MythicDungeons is a fairly straightforward process. The simplest approach is to create a static method in your root class (where onEnable() and onDisable() are), and get the MythicDungeonsService.

public static MythicDungeonsService mythicDungeonsAPI() {
        return Bukkit.getServer().getServicesManager().load(MythicDungeonsService.class);
}

Example Usage

if (MyPlugin.mythicDungeonsAPI().isPlayerInDungeon(player) {
       // Do something
}

Javadocs

The following link will take you to our Javadocs where you will get more information about our methods and events link coming soon

Next up: Getting Started with Elements -->
Clone repository

NOTE: Items marked with * are incomplete or unwritten.

General Info
  • Changelogs
  • Commands and Permissions
  • Plugin Config
  • How it all Works
Guides
  • Getting Started
  • Your First Dungeon
  • Importing from DXL
Dungeon Elements
  • Dungeon Config
  • Functions
  • Triggers
  • Conditions
Compatibility
  • Mythic Mobs
  • Placeholder API
  • BetonQuest
Developer Documentation
  • Introduction to API
  • Getting Started with Elements
  • GUI Menus
  • Custom Functions
  • Custom Triggers
  • Custom Conditions
  • Adding Party Support