mirror of
https://github.com/ME1312/SubServers-2.git
synced 2024-11-25 11:46:50 +01:00
The release version commit (maybe?)
This commit is contained in:
parent
bb592da15b
commit
34c9effa6f
@ -13,6 +13,7 @@ import org.bukkit.ChatColor;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.scheduler.BukkitRunnable;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.PrimitiveIterator.OfInt;
|
||||
@ -243,7 +244,7 @@ public abstract class UIRenderer {
|
||||
if (subtitle != null && tdownload == null) {
|
||||
tdownload = new ContainedPair<String, Integer>(subtitle, 0);
|
||||
|
||||
Bukkit.getScheduler().runTask(plugin, new Runnable() {
|
||||
new BukkitRunnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
if (tdownload != null) {
|
||||
@ -251,14 +252,15 @@ public abstract class UIRenderer {
|
||||
tdownload.value = 0;
|
||||
}
|
||||
|
||||
if (sendTitle(adownload[tdownload.value], tdownload.key, 0, 10, 5)) {
|
||||
Bukkit.getScheduler().runTaskLater(plugin, this, 1);
|
||||
if (!sendTitle(adownload[tdownload.value], tdownload.key, 0, 10, 5)) {
|
||||
cancel();
|
||||
}
|
||||
} else {
|
||||
sendTitle(null);
|
||||
cancel();
|
||||
}
|
||||
}
|
||||
});
|
||||
}.runTaskTimer(plugin, 0, 1);
|
||||
} else if (subtitle != null) {
|
||||
tdownload.key = subtitle;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user