From 291aea4ba50cf3397f592e08906d60430370e48b Mon Sep 17 00:00:00 2001
From: YuTian <2953516620@qq.com>
Date: Mon, 19 Aug 2024 17:40:28 +0800
Subject: [PATCH] 1.0.4
---
pom.xml | 2 +-
src/main/java/com/io/yutian/enderdragonwar/game/Game.java | 4 ++++
.../com/io/yutian/enderdragonwar/listener/LiveListener.java | 2 +-
.../io/yutian/enderdragonwar/manager/GiftEffectManager.java | 1 -
src/main/resources/plugin.yml | 2 +-
5 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index c776229..1801cda 100644
--- a/pom.xml
+++ b/pom.xml
@@ -75,7 +75,7 @@
com.io.yutian
PixelLiveAPI
- 1.0.6
+ 1.1.4
provided
diff --git a/src/main/java/com/io/yutian/enderdragonwar/game/Game.java b/src/main/java/com/io/yutian/enderdragonwar/game/Game.java
index 39b2efe..b30bab2 100644
--- a/src/main/java/com/io/yutian/enderdragonwar/game/Game.java
+++ b/src/main/java/com/io/yutian/enderdragonwar/game/Game.java
@@ -27,6 +27,7 @@ public class Game {
private boolean startd;
private long liveTime;
private List tasks = new ArrayList<>();
+ private List effectTasks = new ArrayList<>();
private int tragetCueI = 0;
private int dianzan;
@@ -195,5 +196,8 @@ public class Game {
setLiveTime(newTime);
}
+ public void addEffectTask(BukkitTask task) {
+ effectTasks.add(task);
+ }
}
diff --git a/src/main/java/com/io/yutian/enderdragonwar/listener/LiveListener.java b/src/main/java/com/io/yutian/enderdragonwar/listener/LiveListener.java
index c9bdc08..b29aaab 100644
--- a/src/main/java/com/io/yutian/enderdragonwar/listener/LiveListener.java
+++ b/src/main/java/com/io/yutian/enderdragonwar/listener/LiveListener.java
@@ -81,7 +81,7 @@ public class LiveListener implements Listener {
for (Player player : Bukkit.getOnlinePlayers()) {
player.sendMessage("§a礼物: §e" + hideUserName + " §d送来了 §e" + giftName + "x" + giftAmount);
}
- EnderDragonWar.inst().getLogger().info("§a礼物: §e" + hideUserName + " §d送来了 §e" + giftName + "x" + giftAmount);
+ EnderDragonWar.inst().getLogger().info("礼物: " + hideUserName + " 送来了 " + giftName + "x" + giftAmount);
}
}
diff --git a/src/main/java/com/io/yutian/enderdragonwar/manager/GiftEffectManager.java b/src/main/java/com/io/yutian/enderdragonwar/manager/GiftEffectManager.java
index 6b293b6..9af728e 100644
--- a/src/main/java/com/io/yutian/enderdragonwar/manager/GiftEffectManager.java
+++ b/src/main/java/com/io/yutian/enderdragonwar/manager/GiftEffectManager.java
@@ -2,7 +2,6 @@ package com.io.yutian.enderdragonwar.manager;
import com.io.yutian.enderdragonwar.effect.types.*;
import com.io.yutian.pixelliveapi.api.PixelLiveAPI;
-import com.yaohun.enderdragonwar.effect.types.*;
public class GiftEffectManager {
diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml
index db3e1d5..04f4cdc 100644
--- a/src/main/resources/plugin.yml
+++ b/src/main/resources/plugin.yml
@@ -1,5 +1,5 @@
name: EnderDragonWar
-version: 1.0.4
+version: 1.0.5
api-version: 1.20
main: com.io.yutian.enderdragonwar.EnderDragonWar
depend: [PixelLiveAPI]