27 lines
539 B
Java
27 lines
539 B
Java
package pw.yumc.LuckLottery.runnable;
|
|
|
|
import java.util.List;
|
|
|
|
import org.bukkit.ChatColor;
|
|
import org.bukkit.entity.Player;
|
|
|
|
import pw.yumc.LuckLottery.utils.ChatUtils;
|
|
|
|
public class LaterShow implements Runnable {
|
|
|
|
Player p;
|
|
List<String> messages;
|
|
|
|
public LaterShow(Player p, List<String> messages) {
|
|
this.p = p;
|
|
this.messages = messages;
|
|
}
|
|
|
|
@Override
|
|
public void run() {
|
|
ChatUtils.sendMessage(p, ChatColor.RED + "在您离线期间彩票开奖结果:");
|
|
ChatUtils.sendMessage(p, messages);
|
|
}
|
|
|
|
}
|