8 |
import org.bukkit.command.CommandSender; |
import org.bukkit.command.CommandSender; |
9 |
import org.bukkit.plugin.Plugin; |
import org.bukkit.plugin.Plugin; |
10 |
|
|
11 |
|
import dk.thoerup.bukkit.hoeruputils.utils.MessageBroadcaster; |
12 |
|
|
13 |
public class EternalDayCommand implements CommandExecutor { |
public class EternalDayCommand implements CommandExecutor { |
14 |
|
|
15 |
|
|
50 |
public void run() { |
public void run() { |
51 |
if (world.getTime() > 12000) { |
if (world.getTime() > 12000) { |
52 |
world.setTime(0); |
world.setTime(0); |
53 |
|
server.getScheduler().scheduleSyncDelayedTask(plugin, new MessageBroadcaster(server, ChatColor.YELLOW + "Eternalday has extended the period of light once again!")); |
54 |
} |
} |
55 |
} |
} |
56 |
|
|