Skip to content

testusuke/VaultManager

Repository files navigation

VaultManager

Vaultの依存関係へ追加

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>

Vaultを使用してみる。

  • 残高確認
VaultManager.economy?.getBalance(Player)
  • 引き出し
VaultManager.economy?.withdrawPlayer(Player, Double)
  • 入金
VaultManager.economy?.depositPlayer(Player, Double)

Releases

No releases published

Packages

No packages published

Languages