-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# MinigamesAPI | ||
|
||
[![Build Status](https://github.com/xFedeT/MinigamesAPI/actions/workflows/gradle.yml/badge.svg)](https://github.com/xFedeT/MinigamesAPI/actions?query=branch%3Amain) | ||
[![Code Climate](https://codeclimate.com/github/xFedeT/MinigamesAPI/badges/gpa.svg)](https://codeclimate.com/github/xFedeT/MinigamesAPI) | ||
![Visitors](https://visitor-badge.laobi.icu/badge?page_id=xFedeT.MinigamesAPI) | ||
|
||
A Minigame Plugin/API core that allow to create custom Minigame | ||
|
||
- Simple to use | ||
- Lightweight | ||
- Flexible | ||
- Null-safe | ||
- Better performance | ||
- Better optimization | ||
|
||
|
||
## How it works | ||
|
||
|
||
### Integration | ||
Start using MinigamesAPI by adding this to your pom.xml: | ||
```xml | ||
<repositories> | ||
<repository> | ||
<id>JitPack</id> | ||
<url>https://jitpack.io</url> | ||
</repository> | ||
</repositories> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>com.github.xFedeT</groupId> | ||
<artifactId>MinigamesAPI</artifactId> | ||
<version>VERSION</version> | ||
</dependency> | ||
</dependencies> | ||
``` | ||
|
||
or build.gradle: | ||
```kotlin | ||
repositories { | ||
maven { url 'https://jitpack.io' } | ||
} | ||
|
||
dependencies { | ||
implementation 'com.github.xFedeT:MinigamesAPI:VERSION' | ||
} | ||
``` | ||
|
||
### Getting Started | ||
|
||
**Getting MinigamesAPI in you project** | ||
```java | ||
public class YourPlugin extends JavaPlugin implements Minigame { | ||
@Override | ||
public void onEnable() { | ||
minigamesAPI = MinigamesProvider.get(); | ||
minigamesAPI.registerMinigame(this); | ||
} | ||
} | ||
``` | ||
:pencil: Read the full documentation in the [MinigamesAPI Wiki](https://github.com/xFedeT/MinigamesAPI/wiki). | ||
|
||
:pencil: See a full working example based on this | ||
[here](https://github.com/xFedeT/MinigamesAPI/tree/main/sumo). |