From aec624391a011709500857d69901b2bdd04bbc7c Mon Sep 17 00:00:00 2001 From: leir4iks <118904014+leir4iks@users.noreply.github.com> Date: Wed, 1 Oct 2025 18:11:28 +0300 Subject: [PATCH 1/3] Asynchronous event triggered synchronously --- .../loohp/interactivechat/objectholders/ICPlayerFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/com/loohp/interactivechat/objectholders/ICPlayerFactory.java b/common/src/main/java/com/loohp/interactivechat/objectholders/ICPlayerFactory.java index 1bfbb709..f03572d2 100644 --- a/common/src/main/java/com/loohp/interactivechat/objectholders/ICPlayerFactory.java +++ b/common/src/main/java/com/loohp/interactivechat/objectholders/ICPlayerFactory.java @@ -97,7 +97,7 @@ public void onLeave(PlayerQuitEvent event) { if (!REMOTE_UUID.contains(uuid)) { ICPlayer icplayer = ICPLAYERS.remove(uuid); if (icplayer != null && LOGGING_IN.remove(uuid) == null) { - Bukkit.getPluginManager().callEvent(new ICPlayerQuitEvent(icplayer, false)); + Scheduler.runTaskAsynchronously(InteractiveChat.plugin, () -> Bukkit.getPluginManager().callEvent(new ICPlayerQuitEvent(icplayer, false))); } } } From bd6f938a9ee7e5f9f15856faf171139a807aa3b3 Mon Sep 17 00:00:00 2001 From: leir4iks Date: Thu, 2 Oct 2025 14:56:55 +0300 Subject: [PATCH 2/3] 123 --- .github/workflows/build.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..f56c5681 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,29 @@ +name: build + +on: + push: + branches: [ "master" ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + cache: maven + + - name: Build + run: mvn -B package --file pom.xml + + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: InteractiveChat + path: common/target/InteractiveChat-*.jar \ No newline at end of file From dc231b63c2c9fc1371f2eae75f8bda520ddafe87 Mon Sep 17 00:00:00 2001 From: leir4iks <118904014+leir4iks@users.noreply.github.com> Date: Thu, 2 Oct 2025 14:57:57 +0300 Subject: [PATCH 3/3] Delete .github/workflows/build.yml --- .github/workflows/build.yml | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index f56c5681..00000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: build - -on: - push: - branches: [ "master" ] - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Set up JDK 17 - uses: actions/setup-java@v3 - with: - java-version: '17' - distribution: 'temurin' - cache: maven - - - name: Build - run: mvn -B package --file pom.xml - - - name: Upload artifact - uses: actions/upload-artifact@v3 - with: - name: InteractiveChat - path: common/target/InteractiveChat-*.jar \ No newline at end of file