diff --git a/.github/workflows/PaperServerTest.yml b/.github/workflows/PaperServerTest.yml index bc41975c1..edee69e70 100644 --- a/.github/workflows/PaperServerTest.yml +++ b/.github/workflows/PaperServerTest.yml @@ -30,4 +30,4 @@ jobs: uses: jaoafa/CheckPluginEnabling@v2.2 with: plugin-name: MyMaid4 - minecraft-version: 1.18.1 + minecraft-version: 1.18.2 diff --git a/.run/buildAndTest.bat b/.run/buildAndTest.bat index 4698aa4a1..fdcb0da93 100644 --- a/.run/buildAndTest.bat +++ b/.run/buildAndTest.bat @@ -2,6 +2,7 @@ set PLUGIN_NAME=MyMaid4 set JAR_FILE=MyMaid4.jar +set PAPER_VERSION=1.18.2 if not exist server ( mkdir server @@ -15,8 +16,8 @@ if not exist server\plugins ( mkdir server\plugins ) -if not exist server\paper.jar ( - curl -o server\paper.jar -L "https://api.tomacheese.com/papermc/1.18.2/latest" +if not exist server\paper-%PAPER_VERSION%.jar ( + curl -o server\paper-%PAPER_VERSION%.jar -L "https://api.tomacheese.com/papermc/%PAPER_VERSION%/latest" ) if not exist server\mcrconapi-1.1.1.jar ( @@ -88,7 +89,7 @@ if not %errorlevel% == 0 ( echo Minecraftサーバが起動していないため、起動します。 cd server - %SELECTED_JAVA% -jar paper.jar -nogui + %SELECTED_JAVA% -jar paper-%PAPER_VERSION%.jar -nogui if %errorlevel% == 0 exit ) diff --git a/src/main/java/com/jaoafa/mymaid4/event/Event_ViaVerCheck.java b/src/main/java/com/jaoafa/mymaid4/event/Event_ViaVerCheck.java index 653ab5410..139a4818b 100644 --- a/src/main/java/com/jaoafa/mymaid4/event/Event_ViaVerCheck.java +++ b/src/main/java/com/jaoafa/mymaid4/event/Event_ViaVerCheck.java @@ -76,7 +76,7 @@ public void run() { String version = obj.getString(ver); - if (!version.equals("1.18.1")) { + if (!version.equals("1.18.2")) { player.sendMessage(Component.text().append( Component.text("[VersionChecker]"), Component.space(), @@ -85,13 +85,13 @@ public void run() { player.sendMessage(Component.text().append( Component.text("[VersionChecker]"), Component.space(), - Component.text("繧オ繝シ繝舌ヰ繝シ繧ク繝ァ繝ウ縺ッ1.18.1縺ョ縺溘a縲", NamedTextColor.AQUA), + Component.text("繧オ繝シ繝舌ヰ繝シ繧ク繝ァ繝ウ縺ッ1.18.2縺ョ縺溘a縲", NamedTextColor.AQUA), Component.text("荳驛ィ縺ョ繝悶Ο繝繧ッ繝サ讖溯ス縺ッ蛻ゥ逕ィ縺ァ縺阪∪縺帙s縲", NamedTextColor.RED) ).build()); player.sendMessage(Component.text().append( Component.text("[VersionChecker]"), Component.space(), - Component.text("繧ッ繝ゥ繧、繧「繝ウ繝医ヰ繝シ繧ク繝ァ繝ウ繧偵1.18.1縲阪↓縺吶k縺薙→繧貞シキ縺上♀蜍ァ繧√@縺セ縺吶", NamedTextColor.AQUA) + Component.text("繧ッ繝ゥ繧、繧「繝ウ繝医ヰ繝シ繧ク繝ァ繝ウ繧偵1.18.2縲阪↓縺吶k縺薙→繧貞シキ縺上♀蜍ァ繧√@縺セ縺吶", NamedTextColor.AQUA) ).build()); } diff --git a/src/main/resources/versions.json b/src/main/resources/versions.json index 28ee1ac1f..1f3bb6bf8 100644 --- a/src/main/resources/versions.json +++ b/src/main/resources/versions.json @@ -410,9 +410,10 @@ "Snapshot 58": "1.18-rc2", "Snapshot 59": "1.18-rc3", "Snapshot 60": "1.18-rc4", - "757": "1.18.2", + "757": "1.18.1", "Snapshot 61": "1.18.1-pre1", "Snapshot 62": "1.18.1-rc1", "Snapshot 63": "1.18.1-rc2", - "Snapshot 64": "1.18.1-rc3" + "Snapshot 64": "1.18.1-rc3", + "758": "1.18.2" } \ No newline at end of file