[FREE] Official LunarClient API + Example Plugin

Elb1to

https://elb1to.me
Supreme
Feedback score
12
Posts
173
Reactions
119
Resources
14
Hello MC-Market users!

First of all I want to leave a disclaimer here in case there are any issues by doing this thread/post, if there's an issue feel free to leave me a message via private messages or on my Discord (Elb1to#0001) and I'll remove this thread.

Without further ado, let's get into it, shall we?

As we all know, Lunar/Moonsworth developers have been working on a public (and free API. This is based on what I know about it so far) official API for Lunar Client. The current known and most used LunarClient API available for public use is TewPingz LunarClient's API, which is packed with most stuff, but lacks the ability to check if the player has LunarClient's AntiCheat ON or OFF.

This official Lunar Client API made by their developers has that and much more.

GitHub Repository: https://github.com/FrozedClubDevelopment/LunarClientUtils
Leave an star if you wish Kappa

To add this API into your project you will need Maven (for this "tutorial" if you wanna call it that). The Nexus repository of this API will be linked aswell. (https://maven.moonsworth.com/#browse/browse:lunarclient-public)

In order to add it to your project, follow these 2 steps, pretty easy :tup:

1. Add LunarClient's public API repository into your project pom.xml file
Code:
        <repository>
            <id>lunarclient-public</id>
            <url>https://maven.moonsworth.com/repository/lunarclient-public/</url>
        </repository>

2. Add LunarClient's public API dependency into your project pom.xml file
Code:
        <dependency>
            <groupId>com.lunarclient</groupId>
            <artifactId>bukkitapi</artifactId>
            <version>1.0-20200729.212152-7</version>
        </dependency>

3. Now you can use LunarClient's Official API into your projects, to do so just call the API instance using the following -> LunarClientAPI.getInstance()

After that, you should be prompted with all currently available methods on the API.

Have a nice day and leave some reactions if you wish!

Also, if you have any questions, issues with this post or anything related to this, feel free to leave a comment or contact me privately (if there are any legal issues, idk lmao).
 
Type
Offering
Last edited:
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Biometrical

Premium
Feedback score
2
Posts
137
Reactions
31
Resources
0
This plugin is meant to be used as an example of usage. I however soon plan to utilize some open-source material to make some sample plugins. I will be working with Elb1to to use his example plugin in it.
 

kyninjaworld

Feedback score
0
Posts
26
Reactions
0
Resources
0
Im kinda new to coding and whatever so if you can help me on why it says the dependency groupid and artifactid are not found that would be nice.
 

Miquel Angel

Supreme
Feedback score
0
Posts
19
Reactions
7
Resources
0
This is an API + How to implement his methods to your own plugin, there's not any staffmode command
 
Top