auto-change-chars
Auto Change Chars
If you want to your chars will be change in one location by every few ticks you must:
First you must create ArrayList with your Chars,
Location spawn = Bukkit.getWorld("world").getSpawnLocation(); ArrayList<Integer> board1 = new ArrayList<>(); board1.add(CharUTIL.createChars(player.getLocation(), spawn, true, "&2Welcome on your spawn!")); board1.add(CharUTIL.createChars(player.getLocation(), spawn, true, "&5This is test message&d!"));
and next you use function.
CharUTIL.delayUpdateChars(200L, board1);
- First is time in ticks.
- ArrayList with your Chars.
this function return int Scheduler so if you want later on example cancel this:
Bukkit.getScheduler().cancelTask(board1);
Comments