So using my two methods here
public static void run(final Plugin plugin, String oldText, final Scroller scroller, final Scoreboard board, final Objective obj){
final String text = scroller.next();
board.resetScores(Bukkit.getOfflinePlayer(oldText));
Bukkit.getScheduler().runTaskTimer(plugin, new Runnable(){
public void run(){
Score score = obj.getScore(Bukkit.getOfflinePlayer(text));
score.setScore(4);
resetScores(scroller.next(), board, plugin, scroller);
}
}, 20L, 20L);
}
public static void resetScores(final String args, final Scoreboard board, Plugin plugin, Scroller scroller){
Bukkit.getScheduler().runTaskLater(plugin, new Runnable(){
@Override
public void run() {
board.resetScores(Bukkit.getOfflinePlayer(args));
}
}, 20L);
scroller.next();
}
I cannot reset the score for the Player. I want it so it creates a scrolling fashion on my scoreboard. I am calling it like so (In a different class)
scoreboardScroller.run(plugin, "One Moment...", rankScroller, scoreboard, objective);