Permission:
doorbells.create : Allows the player to use the doorbell command
Commands:
/doorbell <sound> : Hold a button in your hand and use this command to create a doorbell
API:
Right now JitPack has to be used to fetch the API !
Maven:
Code (Text):
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.Stefan7400</groupId>
<artifactId>McDoorbells</artifactId>
<version>6cc120244e</version>
</dependency>
Gradle:
Code (Text):
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
implementation 'com.github.Stefan7400:McDoorbells:6cc120244e'
}
Usage:
Code (Text):
public void onEnable() {
// Plugin startup logic
DoorbellAPI doorbellAPI = Bukkit.getServicesManager().load(DoorbellAPI.class);
//From here on use the doorbellAPI
}