Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
98d9eb8
write vote listener
acrylic-style Nov 1, 2023
42253e5
feat: add VillagerInteractListener
acrylic-style Nov 1, 2023
ba819c8
feat: add super afnw ticket handler
acrylic-style Nov 1, 2023
6713c09
feat: add villager protector
acrylic-style Nov 1, 2023
65f0dd7
feat: add bed listener and ender dragon disable listener
acrylic-style Nov 1, 2023
708884b
update: disable "find treasure" ai on dolphin
acrylic-style Nov 1, 2023
dff4c86
update: remove native-util dependency
acrylic-style Nov 1, 2023
e625ea0
feat: keep inventory if play time is <5 hours
acrylic-style Nov 1, 2023
2cfbfee
feat: pvp mode
acrylic-style Nov 1, 2023
14d7618
update: more villager protection
acrylic-style Nov 1, 2023
c31fd7f
update: better villager protection
acrylic-style Nov 1, 2023
014606a
feat: add /mmgive
acrylic-style Nov 1, 2023
285d48f
fix: message target
acrylic-style Nov 1, 2023
6238cfe
fix: require-item-stash
acrylic-style Nov 2, 2023
22ae703
feat: expressions in mmgive
acrylic-style Nov 2, 2023
cf6d4f7
fix: ItemStash check
acrylic-style Nov 2, 2023
58f5edf
update: play sound to everyone when using super afnw ticket
acrylic-style Nov 2, 2023
0c9485e
fix: teleport to tutorial world on first join
acrylic-style Nov 2, 2023
4b7eb8e
feat: add /safeteleport
acrylic-style Nov 2, 2023
c8fb156
feat: blessed random teleporter
acrylic-style Nov 2, 2023
1af4254
fix: cancel event
acrylic-style Nov 2, 2023
d4e8d39
fix: item duplication
acrylic-style Nov 3, 2023
0bba00f
feat: broadcast votes
acrylic-style Nov 4, 2023
a8fc1da
fix: damages to non-pvp-enabled players
acrylic-style Nov 4, 2023
b69ec08
update gradle
acrylic-style Jul 26, 2024
cb48305
update EssentialsX
acrylic-style Jul 26, 2024
2212aa2
feat: TAB integration
acrylic-style Jul 26, 2024
3598922
feat: give super afnw ticket upon first join
acrylic-style Jul 26, 2024
d4f1c38
suppress player data save messages
acrylic-style Jul 26, 2024
21badf0
use paperweight instead of spigot
acrylic-style Jul 31, 2024
4d1c94d
add DropShardListener
acrylic-style Aug 1, 2024
26f043f
set max luck value to Double.MAX_VALUE
acrylic-style Aug 1, 2024
8ffb6d6
buff (super) afnw ticket and nerf join bonus
acrylic-style Aug 2, 2024
c1c5d40
add netherite upgrade smithing template
acrylic-style Aug 2, 2024
5522a52
fishing gives shard
acrylic-style Aug 2, 2024
26bd637
fix fish listener
acrylic-style Aug 2, 2024
a7d6b18
add reinforced deepslate
acrylic-style Aug 4, 2024
a63eb41
fix vote bonus
acrylic-style Aug 5, 2024
4d03628
add spawn egg
acrylic-style Aug 5, 2024
49b1a69
Update to 1.21.1
acrylic-style Nov 21, 2024
efc86d6
bug fix
acrylic-style Nov 22, 2024
dce68de
Update to 1.21.11
acrylic-style Dec 28, 2025
46ddbca
updates
acrylic-style Dec 30, 2025
2254b7f
Add deploy workflow
acrylic-style Dec 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Bug report
about: 不具合を報告するIssueを作成します。
title: ''
labels: 👮security
assignees: m2en
assignees: acrylic-style

---

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Feature request
about: 機能のリクエストなどを送信します。
title: ''
labels: ✨enhancement
assignees: m2en
assignees: acrylic-style

---

Expand Down
4 changes: 0 additions & 4 deletions .github/codeql-config.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .github/labeler.yml

This file was deleted.

52 changes: 0 additions & 52 deletions .github/labels.yml

This file was deleted.

6 changes: 0 additions & 6 deletions .github/renovate.json

This file was deleted.

14 changes: 0 additions & 14 deletions .github/workflows/auto-labeler.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/build.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/codeql.yml

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Deploy
on:
push:
branches: [ main ]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'adoptium'
java-version: '21'
- run: ./gradlew shadowJar
- run: 'curl -X PUT --data-binary @build/libs/AfnwCore2-*-all.jar "https://saba8-deploy.azisaba.dev/deploy?secret={{ secrets.DEPLOYMAN_SECRET_SABA8 }}&token={{ secrets.DEPLOYMAN_TOKEN }}&filename=AfnwCore2.jar"'
22 changes: 0 additions & 22 deletions .github/workflows/label-sync.yml

This file was deleted.

10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,28 @@
- [Intellij IDEA Ultimate](https://www.jetbrains.com/idea/)
- [Java SE Development Kit 17](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html)
- Java 17
- Gradle 7.3
- Paper 1.17.1 (gh 411)
- Gradle 8.9
- Paper 1.20.2

## 前提プラグイン

AfnwCore2を導入したPaperを起動するには以下のプラグインが `plugins/` に導入されている必要があります。

- [EssentialsX](https://essentialsx.net/downloads.html)
- Votifier
- [ItemStash](https://github.com/AzisabaNetwork/ItemStash)

## 使用API

- [paper-api:1.17.1-R0.1-SNAPSHOT](https://papermc.io/repo/repository/maven-public/)
- [paper-api:1.20.2-R0.1-SNAPSHOT](https://papermc.io/repo/repository/maven-public/)
- [JavaDoc](https://papermc.io/repo/repository/maven-public/)
- [EssentialsX API](https://repo.essentialsx.net/releases/)

## Build

```sh
git clone https://github.com/AfnwTeam/AfnwCore2.git
gradle build
gradlew reobfJar
```

なお、Intellij IDEAを使用している場合はすべてGUI上で使用可能です。
57 changes: 26 additions & 31 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,48 +1,39 @@
plugins {
id("io.papermc.paperweight.userdev") version "2.0.0-beta.19"
java
id("com.github.johnrengelman.shadow") version "8.1.1"
id("com.gradleup.shadow") version "9.3.0"
}

group = "net.azisaba.afnw"
version = "1.5.0-SNAPSHOT"
version = "2.1.0-SNAPSHOT"

repositories {
mavenCentral()
maven {
name = "papermc-repo"
url = uri("https://papermc.io/repo/repository/maven-public/")
}
maven {
name = "sonatype"
url = uri("https://oss.sonatype.org/content/groups/public/")
}
maven {
name = "azisaba"
url = uri("https://repo.azisaba.net/repository/maven-public/")
}
maven {
name = "essentialsx"
url = uri("https://repo.essentialsx.net/releases/")
}
if (properties["azisabaNmsUsername"] != null && properties["azisabaNmsPassword"] != null) {
maven {
name = "azisabaNms"
credentials(PasswordCredentials::class)
url = uri("https://repo.azisaba.net/repository/nms/")
}
}
mavenLocal()
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://oss.sonatype.org/content/groups/public/")
maven("https://repo.azisaba.net/repository/maven-public/")
maven("https://repo.essentialsx.net/releases/")
maven("https://mvn.lumine.io/repository/maven-public/")
maven("https://jitpack.io")
}

dependencies {
implementation("net.blueberrymc:native-util:2.1.0")
compileOnly("io.papermc.paper:paper-api:1.20.2-R0.1-SNAPSHOT")
compileOnly("org.spigotmc:spigot:1.20.2-R0.1-SNAPSHOT")
// implementation("net.blueberrymc:native-util:2.1.0")
implementation("xyz.acrylicstyle.java-util:common:2.1.1")
implementation("xyz.acrylicstyle.java-util:expression:2.1.1")
compileOnly("net.azisaba.ballotbox:receiver:1.0.1")
compileOnly("net.essentialsx:EssentialsX:2.19.7")
compileOnly("net.azisaba:ItemStash:1.0.0-SNAPSHOT")
compileOnly("net.essentialsx:EssentialsX:2.20.1") {
exclude("org.spigotmc", "spigot-api")
}
compileOnly("io.lumine:Mythic-Dist:5.4.0")
compileOnly("io.papermc.paper:paper-api:1.21.11-R0.1-SNAPSHOT")
compileOnly("net.azisaba:TAB-BukkitBridge:3.1.0")
compileOnly("org.jetbrains:annotations:26.0.1")
paperweight.paperDevBundle("1.21.11-R0.1-SNAPSHOT")
}

java.toolchain.languageVersion.set(JavaLanguageVersion.of(17))
java.toolchain.languageVersion.set(JavaLanguageVersion.of(21))

tasks {
compileJava {
Expand All @@ -57,4 +48,8 @@ tasks {
filteringCharset = "UTF-8"
}
}

shadowJar {
relocate("xyz.acrylicstyle.util", "net.azisaba.afnwcore2.lib.xyz.acrylicstyle.util")
}
}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading