Mineplex2018-withcommit/Plugins/Mineplex.MapParser/src/mineplex/mapparser/Ticker.java

21 lines
403 B
Java
Raw Normal View History

package mineplex.mapparser;
import org.bukkit.plugin.java.JavaPlugin;
public class Ticker implements Runnable
{
private JavaPlugin _plugin;
public Ticker(JavaPlugin plugin)
{
_plugin = plugin;
_plugin.getServer().getScheduler().scheduleSyncRepeatingTask(_plugin, this, 0L, 1L);
}
@Override
public void run()
{
_plugin.getServer().getPluginManager().callEvent(new TickEvent());
}
}