Gradle(build.gradle)
repositories {
maven {
url = uri("https://jitpack.io")
}
}
dependencies {
compileOnly("com.github.MilkBowl:VaultAPI:1.7")
}
Maven(pom.xml)
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.github.MilkBowl</groupId>
<artifactId>VaultAPI</artifactId>
<version>1.7</version>
<scope>provided</scope>
</dependency>
</dependencies>
- 残高確認
VaultManager.economy?.getBalance(Player)
- 引き出し
VaultManager.economy?.withdrawPlayer(Player, Double)
- 入金
VaultManager.economy?.depositPlayer(Player, Double)