Skip to content

Commit 8554e8d

Browse files
committed
1.19.3対応update
1 parent 1d69630 commit 8554e8d

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>net.azisaba</groupId>
66
<artifactId>NameChangeAutomation</artifactId>
7-
<version>2.1.0</version>
7+
<version>2.1.1</version>
88

99
<name>${project.artifactId}</name>
1010
<description>Automate name change.</description>
@@ -16,7 +16,7 @@
1616
</organization>
1717

1818
<properties>
19-
<java.version>1.8</java.version>
19+
<java.version>17</java.version>
2020
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2121
</properties>
2222

@@ -76,9 +76,9 @@
7676
<version>4.18.0</version>
7777
</dependency>
7878
<dependency>
79-
<groupId>com.destroystokyo.paper</groupId>
79+
<groupId>io.papermc.paper</groupId>
8080
<artifactId>paper-api</artifactId>
81-
<version>1.16.5-R0.1-SNAPSHOT</version>
81+
<version>1.18.2-R0.1-SNAPSHOT</version>
8282
<scope>provided</scope>
8383
</dependency>
8484
<dependency>

src/main/java/net/azisaba/namechange/NameChangeAutomation.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ public void onDisable() {
8888
Bukkit.getLogger().info(getName() + " disabled.");
8989
}
9090

91+
9192
public void loadNameChangeWeapons(CSDirector plugin) {
9293
File parentFile = new File(plugin.getDataFolder(), "weapons");
9394
File nameChangeDirectory = new File(parentFile, "NameChange");
@@ -96,6 +97,12 @@ public void loadNameChangeWeapons(CSDirector plugin) {
9697

9798
plugin.csminion.completeList();
9899
}
100+
public static NameChangeAutomation getINSTANCE() {
101+
if(INSTANCE == null ){
102+
INSTANCE = (NameChangeAutomation) Bukkit.getPluginManager().getPlugin("NameChangeAutomation");
103+
}
104+
return INSTANCE;
105+
}
99106

100107
public NameChangeInfoIO getNameChangeInfoIO() {
101108
return new NameChangeInfoIO();

src/main/resources/plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: siloneco,Arisa9006,matsu1213
55
description: ${project.description}
66
website: ${project.url}
77
depend: ["CrackShot", "CrackShotPlus", "LeonCSAddon"]
8-
api-version: 1.16
8+
api-version: 1.18
99
commands:
1010
namechange:
1111
permission: namechangeautomation.command.namechange

0 commit comments

Comments
 (0)