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 86
    • Issues 86
    • 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

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: https://docs.mythicdungeons.aestrus.io

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

NOTE: Items marked with * are incomplete or unwritten.

General Info
  • Changelogs
  • Free vs Premium
  • Commands and Permissions
  • Plugin Config
  • How it all Works
Guides
  • Getting Started
  • Your First Dungeon
  • Importing from DXL
Dungeon Elements
  • Dungeon Config
  • Dungeon Types
  • Functions
  • Triggers
  • Conditions
Generated Dungeons [2.0+]
  • Procedural Dungeons Overview
  • Dungeon Rooms
  • Default generation.yml
  • Generator Tips & Tricks
  • Troubleshooting
Compatibility
  • Mythic Mobs
  • Placeholder API
  • BetonQuest
Developer Documentation
  • Avoiding Memory Leaks
  • Introduction to API
  • Getting Started with Elements
  • GUI Menus
  • *Custom Functions
  • *Custom Triggers
  • *Custom Conditions
  • Adding Party Support
    [Coming Soon!]
  • *Custom Dungeon Types
  • *Custom Procedural Layouts