Files
hamster-core/README.md
2022-10-23 05:51:27 +08:00

55 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# [HamsterCore](https://github.com/MiniDay/hamster-core)
仓鼠核心Minecraft 插件开发通用工具包
# 添加依赖
## Gradle (`build.gradle`)
```groovy
// 添加仓库
repositories {
maven {
url "https://maven.airgame.net/maven-public"
}
}
dependencies {
// 对于 Bukkit 插件
compileOnly "cn.hamster3.mc.plugin:hamster-core-bukkit:1.0.0"
// 对于 BungeeCord 插件
compileOnly "cn.hamster3.mc.plugin:hamster-core-bungeecord:1.0.0"
}
```
## Maven (`pom.xml`)
```xml
<project>
<!--添加仓库-->
<repositories>
<repository>
<id>airgame-repo-maven-public</id>
<name>AirGame Maven仓库</name>
<url>https://maven.airgame.net/maven-public</url>
</repository>
</repositories>
<dependencies>
<!--对于 Bukkit 插件-->
<dependency>
<groupId>cn.hamster3.mc.plugin</groupId>
<artifactId>hamster-core-bukkit</artifactId>
<version>1.0.0</version>
</dependency>
<!--对于 BungeeCord 插件-->
<dependency>
<groupId>cn.hamster3.mc.plugin</groupId>
<artifactId>hamster-core-bungeecord</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
</project>
```