Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void lobbyTime()
- {
- Bukkit.getScheduler().scheduleSyncRepeatingTask(this, new Runnable()
- {
- @Override
- public void run()
- {
- Date today1 = Calendar.getInstance().getTime();
- DateFormat tm = new SimpleDateFormat("HH:mm");
- String time = tm.format(today1);
- if(time.equalsIgnoreCase("00:00"))
- {
- Bukkit.getWorld("world").setTime(18000);
- }
- else if(time.equalsIgnoreCase("00:15"))
- {
- Bukkit.getWorld("world").setTime(18250);
- }
- }
- }, 20L, 20L);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement