Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.realistic.scoreboard;
- import org.bukkit.event.EventHandler;
- import org.bukkit.event.Listener;
- import org.bukkit.event.server.PluginEnableEvent;
- import org.bukkit.scheduler.BukkitRunnable;
- import com.realistic.api.API;
- public class ScoreBoard_Start implements Listener {
- private API plugin;
- public ScoreBoard_Start(API plugin) {
- this.plugin = plugin;
- }
- private void Start() {
- BukkitRunnable run = new BukkitRunnable() {
- public void run() {
- ScoreBoard_One.enableScoreboard();
- }
- };
- run.runTaskTimer(plugin, 1, 5);
- }
- @EventHandler
- private void Refresh(PluginEnableEvent e) {
- Start();
- }
- }
Add Comment
Please, Sign In to add comment