This commit is contained in:
YuTian 2024-08-15 14:13:52 +08:00
parent d48568f9cc
commit e01f595cda
3 changed files with 15 additions and 0 deletions

View File

@ -137,6 +137,11 @@ public class BlackHoleEffect extends GameGiftEffect {
}.runTaskTimer(EnderDragonWar.plugin, 0L, 1L); }.runTaskTimer(EnderDragonWar.plugin, 0L, 1L);
} }
@Override
public int getQueueTime() {
return 15 * 20;
}
private Set<Block> getRandomUpBlocks(Location location, int size, int amount) { private Set<Block> getRandomUpBlocks(Location location, int size, int amount) {
List<Block> blocks = new ArrayList<>(); List<Block> blocks = new ArrayList<>();
int minX = location.getBlockX() - size; int minX = location.getBlockX() - size;

View File

@ -67,6 +67,11 @@ public class ClearInventoryEffect extends GameGiftEffect {
}.runTaskTimer(EnderDragonWar.plugin, 10L, 4L); }.runTaskTimer(EnderDragonWar.plugin, 10L, 4L);
} }
@Override
public int getQueueTime() {
return 60;
}
private List<Integer> getUseableItemCount(Player player) { private List<Integer> getUseableItemCount(Player player) {
List<Integer> useableSlots = new ArrayList<>(); List<Integer> useableSlots = new ArrayList<>();
for (int i = 0; i < 36; i++) { for (int i = 0; i < 36; i++) {

View File

@ -44,4 +44,9 @@ public class ToHeavenEffect extends GameGiftEffect {
}.runTaskTimer(EnderDragonWar.plugin, 0L, 1L); }.runTaskTimer(EnderDragonWar.plugin, 0L, 1L);
} }
@Override
public int getQueueTime() {
return 200;
}
} }